mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-05 06:13:10 +00:00
close stream in test
This commit is contained in:
parent
cb02a50cd8
commit
568fa5a244
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user