Skip to content

Commit 09c7eb5

Browse files
authored
Merge pull request #8 from SurfingNerd/merge-i247-0.12
Merge i247
2 parents e2e3d96 + 3c9e0e1 commit 09c7eb5

File tree

4 files changed

+66
-32
lines changed

4 files changed

+66
-32
lines changed

Cargo.lock

Lines changed: 61 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ kvdb = "0.1"
7575
kvdb-rocksdb = "0.1.3"
7676
journaldb = { path = "crates/db/journaldb" }
7777
stats = { path = "crates/util/stats" }
78-
prometheus = "0.13.3"
78+
prometheus = "0.14"
7979
fs-swap = "0.2.6"
8080
net2 = "0.2.38"
8181

crates/ethcore/sync/src/api.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ impl NetworkProtocolHandler for SyncProtocolHandler {
594594
fn read(&self, io: &dyn NetworkContext, peer: &PeerId, packet_id: u8, data: &[u8]) {
595595
let session_info = io.session_info(*peer);
596596
if session_info.is_none() {
597-
debug!(target: "sync", "Received packet from peer, where no Session info is available anymore (was just disconnected ??): {peer}");
597+
debug!(target: "sync", "Received packet from peer, where no Session info is available anymore (was just disconnected ?): {peer}");
598598
return;
599599
}
600600
let node_id = io.session_info(*peer).unwrap().id;
@@ -614,7 +614,7 @@ impl NetworkProtocolHandler for SyncProtocolHandler {
614614
.unwrap_or_else(|| panic!("peer not found: {peer}"))
615615
.id;
616616
if io.is_reserved_peer(*peer) {
617-
trace!(target: "sync", "Connected to reserved peer {node_id:?} {peer}" );
617+
debug!(target: "sync", "Connected to reserved peer {node_id:?} {peer}" );
618618
}
619619
// If warp protocol is supported only allow warp handshake
620620
let warp_protocol = io.protocol_version(PAR_PROTOCOL, *peer).unwrap_or(0) != 0;
@@ -630,7 +630,7 @@ impl NetworkProtocolHandler for SyncProtocolHandler {
630630
fn disconnected(&self, io: &dyn NetworkContext, peer: &PeerId) {
631631
trace_time!("sync::disconnected");
632632
if io.is_reserved_peer(*peer) {
633-
warn!(target: "sync", "Disconnected from reserved peer peerID: {} protocol: {} peer: {}",peer , io.subprotocol_name(), io.session_info(*peer).expect("").id.map_or("".to_string(), |f| format!("{:?}", f)));
633+
debug!(target: "sync", "Disconnected from reserved peer peerID: {} protocol: {} peer: {}",peer , io.subprotocol_name(), io.session_info(*peer).expect("").id.map_or("".to_string(), |f| format!("{:?}", f)));
634634
}
635635
if io.subprotocol_name() != PAR_PROTOCOL {
636636
self.sync.write().on_peer_aborting(

crates/util/stats/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ edition = "2018"
66

77
[dependencies]
88
log = "0.4"
9-
prometheus = "0.13.3"
9+
prometheus = "0.14"
1010
vergen = "0.1"

0 commit comments

Comments
 (0)