committed by
Marek Kotewicz
parent
53ec1141cf
commit
33b39f0725
@@ -170,7 +170,18 @@ pub struct AttachedProtocol {
|
||||
}
|
||||
|
||||
impl AttachedProtocol {
|
||||
fn register(&self, _network: &NetworkService) {}
|
||||
fn register(&self, network: &NetworkService) {
|
||||
let res = network.register_protocol(
|
||||
self.handler.clone(),
|
||||
self.protocol_id,
|
||||
self.packet_count,
|
||||
self.versions
|
||||
);
|
||||
|
||||
if let Err(e) = res {
|
||||
warn!(target: "sync", "Error attaching protocol {:?}: {:?}", self.protocol_id, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// EthSync initialization parameters.
|
||||
|
||||
Reference in New Issue
Block a user