Skip to content

Commit

Permalink
clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Sep 18, 2024
1 parent 1414e3b commit 5c77f4a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions services/travelmux/src/api/app_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ impl AppState {
})?;

// TODO: Separate inserting an endpoint from (periodically) fetching its routers
self.otp_cluster.insert_endpoint(url).await.map_err(|err| {
log::error!("error while inserting endpoint {endpoint:?}");
err
})?;
self.otp_cluster
.insert_endpoint(url)
.await
.inspect_err(|err| {
log::error!("error while inserting endpoint {endpoint:?}, {err}");
})?;
log::info!("added endpoint: {endpoint}");
Ok(())
}
Expand Down

0 comments on commit 5c77f4a

Please sign in to comment.