Skip to content

Commit b24c161

Browse files
committed
fix: lint warning
1 parent 36fdb42 commit b24c161

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/p2p/libp2p/stream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (s *stream) ResponseHeaders() p2p.Headers {
4141
}
4242

4343
func (s *stream) Version() (*semver.Version, error) {
44-
parts := strings.Split(string(s.Stream.Protocol()), "/")
44+
parts := strings.Split(string(s.Protocol()), "/")
4545
partsLen := len(parts)
4646
if partsLen < 2 {
4747
return nil, errors.New("invalid protocol version")

0 commit comments

Comments
 (0)