Closed marten-seemann closed 2 years ago
gocompat
says:
branch 'master' set up to track 'origin/master'.
"github.com/libp2p/go-libp2p-core/network".NotifyBundle.OpenedStreamF FieldDeleted
"github.com/libp2p/go-libp2p-core/network".NotifyBundle.ClosedStreamF FieldDeleted
"github.com/libp2p/go-libp2p-core/network".NotifyBundle.OpenedStream MethodDeleted
"github.com/libp2p/go-libp2p-core/network".NotifyBundle.ClosedStream MethodDeleted
"github.com/libp2p/go-libp2p-core/network".NoopNotifiee.OpenedStream MethodDeleted
"github.com/libp2p/go-libp2p-core/network".NoopNotifiee.ClosedStream MethodDeleted
"github.com/libp2p/go-libp2p-core/network".Notifiee InterfaceChanged
We ahve some tests inside bitswap, but that's it. It looks like elrond may have been using this for some form of connection management, but really the hook isn't all that useful.
I'd remove it and figure out a way to fix upstream.
As far as I can tell, nobody is using the
OpenedStream
andClosedStream
notification.This is because they're not really useful: You can get a notification that the swarm opened a new stream, but you can read, write, close or reset the stream without interfering with the application. Therefore you won't even know which libp2p protocol is being negotiated on that stream.