From fb164b104bc80860980c7aa3c79f8c6c98206bcf Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Mon, 28 Aug 2023 13:35:54 -0700 Subject: [PATCH] Format --- app/plugins/contactRetry.go | 2 +- app/plugins/contactRetry_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/plugins/contactRetry.go b/app/plugins/contactRetry.go index 67de66e..1ed749d 100644 --- a/app/plugins/contactRetry.go +++ b/app/plugins/contactRetry.go @@ -259,7 +259,7 @@ func (cr *contactRetry) run() { cr.addConnection(server, connections.DISCONNECTED, serverConn, lastSeen) } // this was an authorized event, and so we store this peer. - log.Debugf("authorizing id: %v", id); + log.Debugf("authorizing id: %v", id) cr.authorizedPeers.Store(id, true) if c, ok := cr.connections.Load(id); ok { contact := c.(*contact) diff --git a/app/plugins/contactRetry_test.go b/app/plugins/contactRetry_test.go index 54a8052..be60309 100644 --- a/app/plugins/contactRetry_test.go +++ b/app/plugins/contactRetry_test.go @@ -36,10 +36,10 @@ func TestContactRetryQueue(t *testing.T) { for { if pinf, exists := cr.connections.Load(testOnion); exists { if pinf.(*contact).queued { - if _,exists := cr.authorizedPeers.Load(testOnion); exists { - t.Logf("authorized"); - break; - } + if _, exists := cr.authorizedPeers.Load(testOnion); exists { + t.Logf("authorized") + break + } } } }