mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-21 10:18:50 +02:00
Add comment
This commit is contained in:
parent
9504012920
commit
38f2a59d1b
@ -142,7 +142,10 @@ func (c *Client) Connect() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo: what should happen of call with the same peerID?
|
// OpenConn create a new net.Conn for the destination peer ID. In case if the connection is in progress
|
||||||
|
// to the relay server, the function will block until the connection is established or timed out. Otherwise,
|
||||||
|
// it will return immediately.
|
||||||
|
// todo: what should happen if call with the same peerID with multiple times?
|
||||||
func (c *Client) OpenConn(dstPeerID string) (net.Conn, error) {
|
func (c *Client) OpenConn(dstPeerID string) (net.Conn, error) {
|
||||||
c.mu.Lock()
|
c.mu.Lock()
|
||||||
defer c.mu.Unlock()
|
defer c.mu.Unlock()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user