Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix the error! being in the wrong place
  • Loading branch information
tomaka committed Apr 5, 2019
commit 85ed1bd148bfc4030085a3f896771a41c6d511ff
2 changes: 1 addition & 1 deletion core/network-libp2p/src/custom_proto/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -792,9 +792,9 @@ where
debug!(target: "sub-libp2p", "Handler({:?}) => Closed({:?})", source, result);

let mut entry = if let Entry::Occupied(entry) = self.peers.entry(source.clone()) {
error!(target: "sub-libp2p", "State mismatch in the custom protos handler");
entry
} else {
error!(target: "sub-libp2p", "State mismatch in the custom protos handler");
return
};

Expand Down