There was an error while loading. Please reload this page.
1 parent 36fdb42 commit b24c161Copy full SHA for b24c161
1 file changed
pkg/p2p/libp2p/stream.go
@@ -41,7 +41,7 @@ func (s *stream) ResponseHeaders() p2p.Headers {
41
}
42
43
func (s *stream) Version() (*semver.Version, error) {
44
- parts := strings.Split(string(s.Stream.Protocol()), "/")
+ parts := strings.Split(string(s.Protocol()), "/")
45
partsLen := len(parts)
46
if partsLen < 2 {
47
return nil, errors.New("invalid protocol version")
0 commit comments