Skip to content

Commit

Permalink
Require Watcher::Stream to be Send
Browse files Browse the repository at this point in the history
Signed-off-by: MOZGIII <[email protected]>
  • Loading branch information
MOZGIII committed Jun 8, 2020
1 parent d9061c3 commit 2b600d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kubernetes/watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub trait Watcher {
type StreamError: std::error::Error + Send + 'static;

/// The stream type produced by the watch request.
type Stream: Stream<Item = Result<WatchResponse<Self::Object>, Self::StreamError>>;
type Stream: Stream<Item = Result<WatchResponse<Self::Object>, Self::StreamError>> + Send;

/// Issues a single watch request and returns a stream results.
fn watch<'a>(
Expand Down

0 comments on commit 2b600d8

Please sign in to comment.