Revert noisy newline changes

This commit is contained in:
Ian Davis 2021-07-19 13:32:00 +01:00 committed by vyzo
parent 079d8973a6
commit 37ebe34352
2 changed files with 2 additions and 1 deletions

View File

@ -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) {

View File

@ -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()