close stream in test

This commit is contained in:
Yusef Napora 2020-05-06 10:25:14 -04:00 committed by vyzo
parent cb02a50cd8
commit 568fa5a244
1 changed files with 2 additions and 0 deletions

View File

@ -1787,6 +1787,8 @@ type iwantEverything struct {
}
func (iwe *iwantEverything) handleStream(s network.Stream) {
defer s.Close()
os, err := iwe.h.NewStream(context.Background(), s.Conn().RemotePeer(), GossipSubID_v10)
if err != nil {
panic(err)