From 6957d5782461828a8323ed53a0519c6735d848e6 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Thu, 22 Jul 2021 21:35:44 +0200 Subject: [PATCH] remove deprecated type --- p2p/transport/websocket/websocket.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/p2p/transport/websocket/websocket.go b/p2p/transport/websocket/websocket.go index 77d522deb..49ace85bc 100644 --- a/p2p/transport/websocket/websocket.go +++ b/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 {