Skip to content

Commit

Permalink
Revert "move error log"
Browse files Browse the repository at this point in the history
This reverts commit a1dbc61.
  • Loading branch information
rob-maron committed May 2, 2024
1 parent a1dbc61 commit a681906
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdn-client/src/retry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ macro_rules! try_with_reconnect {
match $out {
Ok(res) => Ok(res),
Err(err) => {
error!("connection failed: {err}");

// Acquire our "semaphore". If another task is doing this, just return an error
if let Ok(mut connection_guard) = $self.inner.connection.clone().try_write_owned() {
error!("connection failed: {err}, reconnecting");

// Clone `inner` so we can use it in the task
let inner = $self.inner.clone();
// We are the only ones reconnecting. Let's launch the task to reconnect
Expand Down

0 comments on commit a681906

Please sign in to comment.