Update comment
This commit is contained in:
parent
d04a9d941f
commit
d22c6f33e9
1 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ func NewCodespaceConnection(ctx context.Context, codespace *api.Codespace, httpC
|
|||
|
||||
// Connect connects the client to the tunnel.
|
||||
func (c *CodespaceConnection) Connect(ctx context.Context) error {
|
||||
// Lock the mutex to prevent connection races
|
||||
// Lock the mutex to prevent race conditions with the underlying SSH connection
|
||||
c.TunnelClient.mu.Lock()
|
||||
defer c.TunnelClient.mu.Unlock()
|
||||
|
||||
|
|
@ -105,7 +105,7 @@ func (c *CodespaceConnection) Connect(ctx context.Context) error {
|
|||
|
||||
// Close closes the underlying tunnel client SSH connection.
|
||||
func (c *CodespaceConnection) Close() error {
|
||||
// Lock the mutex to prevent connection races
|
||||
// Lock the mutex to prevent race conditions with the underlying SSH connection
|
||||
c.TunnelClient.mu.Lock()
|
||||
defer c.TunnelClient.mu.Unlock()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue