From b5c9af9e9c8ca97d948baa42722bb41ee76701b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Thu, 11 Jul 2024 15:37:34 +0200 Subject: [PATCH] Add comment --- client/internal/peer/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/internal/peer/conn.go b/client/internal/peer/conn.go index 39c4b9af3..2f755a043 100644 --- a/client/internal/peer/conn.go +++ b/client/internal/peer/conn.go @@ -317,7 +317,7 @@ func (conn *Conn) GetKey() string { } func (conn *Conn) reconnectLoopWithRetry() { - // wait for the initial connection to be established + // give chance to the peer to establish the initial connection select { case <-conn.ctx.Done(): case <-time.After(3 * time.Second):