From d22c6f33e9c828e89bf5ecd4abf4b5436e7306cd Mon Sep 17 00:00:00 2001 From: David Gardiner Date: Tue, 31 Oct 2023 13:12:25 -0700 Subject: [PATCH] Update comment --- internal/codespaces/connection/connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/codespaces/connection/connection.go b/internal/codespaces/connection/connection.go index 2528b28ed..7eda95e50 100644 --- a/internal/codespaces/connection/connection.go +++ b/internal/codespaces/connection/connection.go @@ -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()