Browse Source

remove deprecated type

pull/1422/head
Marten Seemann 3 years ago
parent
commit
6957d57824
  1. 7
      p2p/transport/websocket/websocket.go

7
p2p/transport/websocket/websocket.go

@ -12,11 +12,6 @@ import (
manet "github.com/multiformats/go-multiaddr/net"
)
// WsProtocol is the multiaddr protocol definition for this transport.
//
// Deprecated: use `ma.ProtocolWithCode(ma.P_WS)
var WsProtocol = ma.ProtocolWithCode(ma.P_WS)
// WsFmt is multiaddr formatter for WsProtocol
var WsFmt = mafmt.And(mafmt.TCP, mafmt.Base(ma.P_WS))
@ -45,7 +40,7 @@ func (t *WebsocketTransport) CanDial(a ma.Multiaddr) bool {
}
func (t *WebsocketTransport) Protocols() []int {
return []int{WsProtocol.Code}
return []int{ma.ProtocolWithCode(ma.P_WS).Code}
}
func (t *WebsocketTransport) Proxy() bool {

Loading…
Cancel
Save