|
@ -9,7 +9,7 @@ import ( |
|
|
|
|
|
|
|
|
"github.com/libp2p/go-libp2p-core/transport" |
|
|
"github.com/libp2p/go-libp2p-core/transport" |
|
|
ma "github.com/multiformats/go-multiaddr" |
|
|
ma "github.com/multiformats/go-multiaddr" |
|
|
manet "github.com/multiformats/go-multiaddr-net" |
|
|
manet "github.com/multiformats/go-multiaddr/net" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func (t *WebsocketTransport) maDial(ctx context.Context, raddr ma.Multiaddr) (manet.Conn, error) { |
|
|
func (t *WebsocketTransport) maDial(ctx context.Context, raddr ma.Multiaddr) (manet.Conn, error) { |
|
@ -29,7 +29,7 @@ func (t *WebsocketTransport) maDial(ctx context.Context, raddr ma.Multiaddr) (ma |
|
|
conn.Close() |
|
|
conn.Close() |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return mnc, nil |
|
|
return mnc, nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|