add 2 more instances of formatting violations
This commit is contained in:
parent
b1248ff315
commit
0827d0d9ef
|
@ -56,7 +56,7 @@ class ID:
|
|||
return self._b58_str
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"<libp2p.peer.id.ID ({self.to_string()})>"
|
||||
return f"<libp2p.peer.id.ID ({self!s})>"
|
||||
|
||||
__str__ = pretty = to_string = to_base58
|
||||
|
||||
|
|
|
@ -541,10 +541,11 @@ class Pubsub:
|
|||
await self.validate_msg(msg_forwarder, msg)
|
||||
except ValidationError:
|
||||
logger.debug(
|
||||
"Topic validation failed: sender %s sent data %s under topic IDs: %s",
|
||||
f"{base58.b58encode(msg.from_id).decode()}:{msg.seqno.hex()}",
|
||||
"Topic validation failed: sender %s sent data %s under topic IDs: %s %s:%s",
|
||||
msg.data.hex(),
|
||||
msg.topicIDs,
|
||||
base58.b58encode(msg.from_id).decode(),
|
||||
msg.seqno.hex(),
|
||||
)
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user