Skip to content

Commit

Permalink
Revert noisy newline changes
Browse files Browse the repository at this point in the history
  • Loading branch information
iand authored and vyzo committed Jul 19, 2021
1 parent 079d897 commit 37ebe34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions blacklist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 37ebe34

Please sign in to comment.