dont error on new stream failure

This commit is contained in:
Jeromy 2016-09-13 09:38:07 -07:00
parent 4a45077e91
commit 21401b8475
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ func (p *PubSubNotif) ClosedStream(n inet.Network, s inet.Stream) {
func (p *PubSubNotif) Connected(n inet.Network, c inet.Conn) { func (p *PubSubNotif) Connected(n inet.Network, c inet.Conn) {
s, err := p.host.NewStream(context.Background(), c.RemotePeer(), ID) s, err := p.host.NewStream(context.Background(), c.RemotePeer(), ID)
if err != nil { if err != nil {
log.Error("opening new stream to peer: ", err, c.LocalPeer(), c.RemotePeer()) log.Warning("opening new stream to peer: ", err, c.LocalPeer(), c.RemotePeer())
return return
} }