Skip to content

Commit 25f5700

Browse files
committed
error: deprecate notifier
1 parent c6e8d92 commit 25f5700

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/channel.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ impl Channel {
139139
if self.recovery_config.auto_recover_channels
140140
|| self.recovery_config.auto_recover_connection
141141
{
142+
#[allow(deprecated)]
142143
if let Some(notifier) = error.notifier() {
143144
notifier.await;
144145
return Ok(());

src/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ impl Error {
4848
&self.kind
4949
}
5050

51+
#[deprecated(note = "Please use Channel::wait_for_recovery instead")]
5152
pub fn notifier(&self) -> Option<Notifier> {
5253
self.notifier.clone()
5354
}

0 commit comments

Comments
 (0)