From b8a38fde662a656504e30d83533016e759bfe079 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 7 Jan 2024 06:51:40 -0500 Subject: [PATCH] fix: dont return by ref --- net/net.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/net.go b/net/net.go index 3f2174c..0ea4465 100644 --- a/net/net.go +++ b/net/net.go @@ -48,7 +48,7 @@ func CreateTransportSocket(peerType string, uri *url.URL) (interface{}, error) { t, err := static.(PeerStatic).Connect(uri) - return &t, err + return t, err } func CreateTransportPeer(peerType string, options *TransportPeerConfig) (Peer, error) {