Fixing warnings (#1321)

This commit is contained in:
Tomasz Drwięga
2016-06-18 15:11:10 +02:00
committed by Gav Wood
parent c1c64bedc2
commit 81df97a737
6 changed files with 12 additions and 12 deletions

View File

@@ -1170,7 +1170,7 @@ impl ChainSync {
.expect("chain.tree_route and chain.find_uncles only return hahses of blocks that are in the blockchain. qed.")).number();
hash_rlp.append(&block_hash);
hash_rlp.append(&number);
rlp_stream.append_raw(&hash_rlp.as_raw(), 1);
rlp_stream.append_raw(hash_rlp.as_raw(), 1);
}
Some(rlp_stream.out())
}

View File

@@ -124,12 +124,11 @@ impl EthSync {
/// Creates and register protocol with the network service
pub fn new(config: SyncConfig, chain: Arc<Client>) -> Arc<EthSync> {
let sync = ChainSync::new(config, chain.deref());
let sync = Arc::new(EthSync {
Arc::new(EthSync {
chain: chain,
sync: RwLock::new(sync),
io_channel: RwLock::new(IoChannel::disconnected()),
});
sync
})
}
/// Register protocol with the network service