fix: dont return by ref
This commit is contained in:
parent
8b2756caad
commit
b8a38fde66
|
@ -48,7 +48,7 @@ func CreateTransportSocket(peerType string, uri *url.URL) (interface{}, error) {
|
||||||
|
|
||||||
t, err := static.(PeerStatic).Connect(uri)
|
t, err := static.(PeerStatic).Connect(uri)
|
||||||
|
|
||||||
return &t, err
|
return t, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateTransportPeer(peerType string, options *TransportPeerConfig) (Peer, error) {
|
func CreateTransportPeer(peerType string, options *TransportPeerConfig) (Peer, error) {
|
||||||
|
|
Loading…
Reference in New Issue