Skip to content

Commit

Permalink
drop subscription on error
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Nov 24, 2023
1 parent d534226 commit 6ff06a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/middlewares/subscriptions/merge_subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@ impl Middleware<SubscriptionRequest, Result<(), StringError>> for MergeSubscript
}
}
Err(e) => {
// this should never happen
tracing::error!("subscription stream error {e:?}");
unreachable!("subscription stream error {e:?}");
// remote upstream subscription failed, drop subscription
tracing::trace!("subscription stream error {e}");
break;
}
}
}
Expand Down

0 comments on commit 6ff06a9

Please sign in to comment.