mirror of https://github.com/waku-org/nwaku.git
fix(noise): remove echo, add stdout.write in print handshake
This commit is contained in:
parent
9fc162dff8
commit
418160bffa
|
@ -266,7 +266,8 @@ proc print*(self: HandshakePattern)
|
|||
{.raises: [IOError, NoiseMalformedHandshake].}=
|
||||
try:
|
||||
if self.name != "":
|
||||
echo self.name, ":"
|
||||
stdout.write self.name, ":\n"
|
||||
stdout.flushFile()
|
||||
#We iterate over pre message patterns, if any
|
||||
if self.preMessagePatterns != EmptyPreMessagePattern:
|
||||
for pattern in self.pre_messagePatterns:
|
||||
|
|
Loading…
Reference in New Issue