Skip to content

Commit 803152e

Browse files
aesedepeceguidiaz
authored andcommitted
fix(session): allow synchronization across protocol version hot swaps
1 parent de1d49a commit 803152e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

node/src/actors/session/handlers.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use std::{cmp::Ordering, convert::TryFrom, io::Error, net::SocketAddr};
22

33
use actix::{
4-
io::WriteHandler, ActorContext, ActorFutureExt, ActorTryFutureExt, Context,
5-
ContextFutureSpawner, Handler, StreamHandler, SystemService, WrapFuture,
4+
ActorContext, ActorFutureExt, ActorTryFutureExt, Context, ContextFutureSpawner,
5+
Handler, io::WriteHandler, StreamHandler, SystemService, WrapFuture,
66
};
77
use bytes::BytesMut;
88
use failure::Fail;
@@ -745,6 +745,7 @@ fn inventory_process_block(session: &mut Session, _ctx: &mut Context<Session>, b
745745
// that uses a newer version.
746746
session.blocks_timestamp = 0;
747747
session.requested_blocks.clear();
748+
748749
}
749750
} else {
750751
// If this is not a requested block, assume it is a candidate

0 commit comments

Comments
 (0)