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
|
return self._b58_str
|
||||||
|
|
||||||
def __repr__(self) -> 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
|
__str__ = pretty = to_string = to_base58
|
||||||
|
|
||||||
|
|
|
@ -541,10 +541,11 @@ class Pubsub:
|
||||||
await self.validate_msg(msg_forwarder, msg)
|
await self.validate_msg(msg_forwarder, msg)
|
||||||
except ValidationError:
|
except ValidationError:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
"Topic validation failed: sender %s sent data %s under topic IDs: %s",
|
"Topic validation failed: sender %s sent data %s under topic IDs: %s %s:%s",
|
||||||
f"{base58.b58encode(msg.from_id).decode()}:{msg.seqno.hex()}",
|
|
||||||
msg.data.hex(),
|
msg.data.hex(),
|
||||||
msg.topicIDs,
|
msg.topicIDs,
|
||||||
|
base58.b58encode(msg.from_id).decode(),
|
||||||
|
msg.seqno.hex(),
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user