Skip to content

Commit

Permalink
preserve ctx when dialing unix socket for desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett committed Nov 27, 2023
1 parent 54774b3 commit e27b7c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ee/desktop/user/client/dialer_posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import (
)

func dialContext(socketPath string) func(_ context.Context, _, _ string) (net.Conn, error) {
return func(_ context.Context, _, _ string) (net.Conn, error) {
return net.Dial("unix", socketPath)
return func(ctx context.Context, _, _ string) (net.Conn, error) {
d := net.Dialer{}
return d.DialContext(ctx, "unix", socketPath)
}
}

0 comments on commit e27b7c7

Please sign in to comment.