From ec3aee6fab6adbbc85787ddac7a7cae5fa47ab65 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Mon, 24 Oct 2016 16:42:54 +0200 Subject: [PATCH] fixed compile error after merging 29 & 30 (#32) --- p2p/src/protocol/sync.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/p2p/src/protocol/sync.rs b/p2p/src/protocol/sync.rs index 82eda2f4..b11675aa 100644 --- a/p2p/src/protocol/sync.rs +++ b/p2p/src/protocol/sync.rs @@ -171,9 +171,8 @@ impl SyncProtocol { } impl Protocol for SyncProtocol { - fn initialize(&mut self, _direction: Direction, version: u32) -> Result<(), Error> { + fn initialize(&mut self, _direction: Direction, version: u32) { self.inbound_connection.lock().start_sync_session(version); - Ok(()) } fn on_message(&mut self, command: &Command, payload: &Bytes, version: u32) -> Result<(), Error> {