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].}=
|
{.raises: [IOError, NoiseMalformedHandshake].}=
|
||||||
try:
|
try:
|
||||||
if self.name != "":
|
if self.name != "":
|
||||||
echo self.name, ":"
|
stdout.write self.name, ":\n"
|
||||||
|
stdout.flushFile()
|
||||||
#We iterate over pre message patterns, if any
|
#We iterate over pre message patterns, if any
|
||||||
if self.preMessagePatterns != EmptyPreMessagePattern:
|
if self.preMessagePatterns != EmptyPreMessagePattern:
|
||||||
for pattern in self.pre_messagePatterns:
|
for pattern in self.pre_messagePatterns:
|
||||||
|
|
Loading…
Reference in New Issue