Skip to content

Commit 6269840

Browse files
committed
logs: correctly print the PeerPoolHandler owner
Signed-off-by: ljedrz <[email protected]>
1 parent 1799d3c commit 6269840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node/router/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub trait PeerPoolHandling<N: Network>: P2P {
145145
}
146146
// If the IP is already banned, reject the attempt.
147147
if self.is_ip_banned(listener_addr.ip()) {
148-
bail!("{{Self::OWNER}} Rejected a connection attempt to a banned IP '{}'", listener_addr.ip());
148+
bail!("{} Rejected a connection attempt to a banned IP '{}'", Self::OWNER, listener_addr.ip());
149149
}
150150
Ok(false)
151151
}

0 commit comments

Comments
 (0)