Skip to content

Commit e88880f

Browse files
authored
Merge branch 'master' into rpc
2 parents d221e02 + f2687e9 commit e88880f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/rpc/pd/leader.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,11 @@ impl PdReactor {
120120
let mut core = Core::new().unwrap();
121121
let handle = core.handle();
122122
{
123-
let f = rx.take_while(|t| ready(t.is_some())).then(|t| {
123+
let f = rx.take_while(|t| ready(t.is_some())).for_each(|t| {
124124
Self::dispatch(&client, t.unwrap(), &handle);
125125
ready(())
126126
});
127-
core.run(TryFutureExt::compat(f.into_future().unit_error()))
128-
.unwrap();
127+
core.run(TryFutureExt::compat(f.unit_error())).unwrap();
129128
}
130129
}
131130

0 commit comments

Comments
 (0)