From 418160bffadd88cc677f4b6fdb42abd0b290b474 Mon Sep 17 00:00:00 2001 From: s1fr0 <28568419+s1fr0@users.noreply.github.com> Date: Thu, 14 Apr 2022 13:51:57 +0200 Subject: [PATCH] fix(noise): remove echo, add stdout.write in print handshake --- waku/v2/protocol/waku_noise/noise.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/waku/v2/protocol/waku_noise/noise.nim b/waku/v2/protocol/waku_noise/noise.nim index b4bbe0788..03f98299f 100644 --- a/waku/v2/protocol/waku_noise/noise.nim +++ b/waku/v2/protocol/waku_noise/noise.nim @@ -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: