Skip to content

Commit

Permalink
fix lifetime warning (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
getong authored Sep 20, 2024
1 parent 6ce1cb7 commit 5b37c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/indexer-proxy/proxy/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ impl Project {
}
}

pub fn endpoint<'a>(&'a self, ep_name: &str, no_internal: bool) -> Result<&Endpoint> {
pub fn endpoint<'a>(&'a self, ep_name: &str, no_internal: bool) -> Result<&'a Endpoint> {
if let Some(end) = self.endpoints.get(ep_name) {
if no_internal && end.is_internal {
Err(Error::InvalidServiceEndpoint(1037))
Expand Down

0 comments on commit 5b37c7f

Please sign in to comment.