Skip to content

Commit 8230f2c

Browse files
committed
various typos in comments
1 parent 2f3f77b commit 8230f2c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

crates/ethcore/sync/src/chain/propagator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ impl ChainSync {
385385
let peers = self.get_consensus_peers();
386386
trace!(target: "sync", "Sending proposed blocks to {:?}", peers);
387387
for block in proposed {
388-
// todo: sometimes we get at the receiving end blocks, with missmatching total difficulty,
388+
// todo: sometimes we get at the receiving end blocks, with mismatching total difficulty,
389389
// so we ignore those blocks on import.
390390
// might that be the case if we are sending more than 1 block here ?
391391
// more about: https://github.com/DMDcoin/diamond-node/issues/61

crates/net/network-devp2p/src/session_container.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ impl SessionContainer {
141141
// maybe the old session is already scheduled for getting deleted.
142142
session.expired()
143143
} else {
144-
error!(target: "network", "host cache inconsistency: Session node id missmatch. expected: {} is {}.", existing_peer_id, id_from_session);
144+
error!(target: "network", "host cache inconsistency: Session node id mismatch. expected: {} is {}.", existing_peer_id, id_from_session);
145145
return Err(ErrorKind::HostCacheInconsistency.into());
146146
}
147147
} else {
@@ -167,9 +167,9 @@ impl SessionContainer {
167167
expired_session.push(old);
168168
}
169169
None => {
170-
// we have a cache missmatch.
170+
// we have a cache mismatch.
171171
// but the only thing is missing is a clean ending of the old session.
172-
// nothing mission critical.
172+
// nothing mission-critical.
173173
error!(target: "network", "host cache inconsistency: Session for node id {} was not found in sessions map, but it should be there.", node_id);
174174
}
175175
}

crates/net/network/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ error_chain! {
172172
display("The hardcoded maximum number of connections has been reached on this host."),
173173
}
174174

175-
#[doc = "A connection to the specified NodeId exists, but there is a missmatch in the host cache."]
175+
#[doc = "A connection to the specified NodeId exists, but there is a mismatch in the host cache."]
176176
HostCacheInconsistency {
177177
description("A connection to the specified nodeId already exists."),
178-
display("A connection to the specified NodeId exists, but there is a missmatch in the host cache."),
178+
display("A connection to the specified NodeId exists, but there is a mismatch in the host cache."),
179179
}
180180

181181
#[doc = "An unknown IO error occurred."]

0 commit comments

Comments
 (0)