Update lib.rs
This commit is contained in:
parent
e85a2f3804
commit
e7574d4516
@ -167,7 +167,7 @@ impl NetworkProtocolHandler<SyncMessage> for EthSync {
|
|||||||
#[allow(single_match)]
|
#[allow(single_match)]
|
||||||
fn message(&self, io: &NetworkContext<SyncMessage>, message: &SyncMessage) {
|
fn message(&self, io: &NetworkContext<SyncMessage>, message: &SyncMessage) {
|
||||||
match *message {
|
match *message {
|
||||||
SyncMessage::NewChainBlocks { ref good, ref bad, ref retracted} => {
|
SyncMessage::NewChainBlocks { ref good, ref bad, ref retracted } => {
|
||||||
let mut sync_io = NetSyncIo::new(io, self.chain.deref());
|
let mut sync_io = NetSyncIo::new(io, self.chain.deref());
|
||||||
self.sync.write().unwrap().chain_new_blocks(&mut sync_io, good, bad, retracted);
|
self.sync.write().unwrap().chain_new_blocks(&mut sync_io, good, bad, retracted);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user