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