mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
message inconsistency fixed
This commit is contained in:
@ -119,7 +119,7 @@ class SecurityMultistream(ABC):
|
||||
protocol, _ = await self.multiselect.negotiate(communicator)
|
||||
if protocol is None:
|
||||
raise MultiselectError(
|
||||
"fail to negotiate a security protocol: no protocl selected"
|
||||
"Failed to negotiate a security protocol: no protocol selected"
|
||||
)
|
||||
# Return transport from protocol
|
||||
return self.transports[protocol]
|
||||
|
||||
@ -86,7 +86,7 @@ class MuxerMultistream:
|
||||
protocol, _ = await self.multiselect.negotiate(communicator)
|
||||
if protocol is None:
|
||||
raise MultiselectError(
|
||||
"fail to negotiate a stream muxer protocol: no protocol selected"
|
||||
"Fail to negotiate a stream muxer protocol: no protocol selected"
|
||||
)
|
||||
return self.transports[protocol]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user