From 37ebe343525115dbd14426e34271e3ed014495fb Mon Sep 17 00:00:00 2001 From: Ian Davis Date: Mon, 19 Jul 2021 13:32:00 +0100 Subject: [PATCH] Revert noisy newline changes --- blacklist_test.go | 1 + pubsub.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/blacklist_test.go b/blacklist_test.go index 9710e9c..5b0bcc9 100644 --- a/blacklist_test.go +++ b/blacklist_test.go @@ -17,6 +17,7 @@ func TestMapBlacklist(t *testing.T) { if !b.Contains(p) { t.Fatal("peer not in the blacklist") } + } func TestTimeCachedBlacklist(t *testing.T) { diff --git a/pubsub.go b/pubsub.go index bd7da1c..3b74fa6 100644 --- a/pubsub.go +++ b/pubsub.go @@ -493,8 +493,8 @@ func (p *PubSub) processLoop(ctx context.Context) { case s := <-p.newPeerStream: pid := s.Conn().RemotePeer() - ch, ok := p.peers[pid] + ch, ok := p.peers[pid] if !ok { log.Warn("new stream for unknown peer: ", pid) s.Reset()