Update lib.rs

This commit is contained in:
Gav Wood 2016-03-12 19:29:18 +01:00
parent e85a2f3804
commit e7574d4516

View File

@ -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);
}, },