Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Nov 2, 2023
1 parent 72f104d commit c7d1b41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nexus/server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ impl NexusBackend {
let catalog = self.catalog.lock().await;
tracing::info!("drop peer_name: {}, if_exists: {}", peer_name, if_exists);
let peer_exists =
catalog.check_peer_entry(&peer_name).await.map_err(|err| {
catalog.check_peer_entry(peer_name).await.map_err(|err| {
PgWireError::ApiError(Box::new(PgError::Internal {
err_msg: format!(
"unable to query catalog for peer metadata: {:?}",
Expand All @@ -516,7 +516,7 @@ impl NexusBackend {
tracing::info!("peer exist count: {}", peer_exists);
if peer_exists != 0 {
let mut flow_handler = self.flow_handler.as_ref().unwrap().lock().await;
flow_handler.drop_peer(&peer_name).await.map_err(|err| {
flow_handler.drop_peer(peer_name).await.map_err(|err| {
PgWireError::ApiError(Box::new(PgError::Internal {
err_msg: format!("unable to drop peer: {:?}", err),
}))
Expand Down

0 comments on commit c7d1b41

Please sign in to comment.