Skip to content

Commit

Permalink
remove mark_changed from Watch
Browse files Browse the repository at this point in the history
  • Loading branch information
hansieodendaal committed Nov 7, 2024
1 parent 2f404b6 commit b465563
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions base_layer/wallet/src/util/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,6 @@ impl<T> Watch<T> {
&mut self.1
}

/// Marks the state as changed.
///
/// After invoking this method [`has_changed()`](Self::has_changed)
/// returns `true` and [`changed()`](Self::changed) returns
/// immediately, regardless of whether a new value has been sent.
///
/// This is useful for triggering an initial change notification after
/// subscribing to synchronize new receivers.
pub fn mark_changed(&mut self) {
self.receiver_mut().mark_changed();
}

pub fn get_receiver(&self) -> watch::Receiver<T> {
self.receiver().clone()
}
Expand Down

0 comments on commit b465563

Please sign in to comment.