Skip to content

Commit ae2db33

Browse files
committed
instrument switch_to_fallback
1 parent 603fd87 commit ae2db33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/robust_provider/subscription.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ impl<N: Network> RobustSubscription<N> {
166166
}
167167
}
168168

169+
#[cfg_attr(feature = "tracing", tracing::instrument(level = "trace", skip(self)))]
169170
async fn switch_to_fallback(&mut self, last_error: CoreError) -> Result<(), Error> {
170171
// If we're on a fallback, try primary first before moving to next fallback
171172
if self.is_on_fallback() && self.try_reconnect_to_primary(true).await {

0 commit comments

Comments
 (0)