Skip to content

Commit

Permalink
Fixed whitespace (squash me)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMaeder committed Dec 13, 2024
1 parent ed406cb commit 57fcce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/socket_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ func connect(fd int, remoteAddr net.Addr, timeout time.Duration, opts ...sonicop
startTime := time.Now()

for {
// Prevent an infinite connect() loop, time out eventually
if time.Since(startTime) > 5 * timeout {
// Prevent an infinite connect() loop, time out eventually
if time.Since(startTime) > 5 * timeout {
return sonicerrors.ErrTimeout
}

Expand Down

0 comments on commit 57fcce2

Please sign in to comment.