Skip to content

Commit

Permalink
Change: Openraft does not require Clone for WatchSender
Browse files Browse the repository at this point in the history
- `WatchSender` is added in: 1b4ec53
  • Loading branch information
drmingdrmer committed Jul 12, 2024
1 parent c55a58d commit 78a1d48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openraft/src/type_config/async_runtime/watch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub trait Watch: Sized + OptionalSend {
fn channel<T: OptionalSend + OptionalSync>(init: T) -> (Self::Sender<T>, Self::Receiver<T>);
}

pub trait WatchSender<W, T>: OptionalSend + Clone
pub trait WatchSender<W, T>: OptionalSend
where
W: Watch,
T: OptionalSend + OptionalSync,
Expand Down

0 comments on commit 78a1d48

Please sign in to comment.