summaryrefslogtreecommitdiff
path: root/cli/ops/fs_events.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-16 05:14:28 +0200
committerGitHub <noreply@github.com>2020-04-15 23:14:28 -0400
commitaab26d226e32ac84da8c855388217b3ee781979d (patch)
tree118aef355e921f830ffbc6c6685f96138787b224 /cli/ops/fs_events.rs
parentfab0204cbf20cc1be7874266325bf258fe0ecaca (diff)
remove calls to futures::executor::block_on (#4760)
Diffstat (limited to 'cli/ops/fs_events.rs')
-rw-r--r--cli/ops/fs_events.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/ops/fs_events.rs b/cli/ops/fs_events.rs
index 8a6434872..8230983dd 100644
--- a/cli/ops/fs_events.rs
+++ b/cli/ops/fs_events.rs
@@ -78,7 +78,7 @@ pub fn op_fs_events_open(
let mut sender = sender.lock().unwrap();
// Ignore result, if send failed it means that watcher was already closed,
// but not all messages have been flushed.
- let _ = futures::executor::block_on(sender.send(res2));
+ let _ = sender.try_send(res2);
})
.map_err(ErrBox::from)?;
let recursive_mode = if args.recursive {