Skip to content

Commit 31b90a4

Browse files
committed
remove the sleeps, one thing at a time!
1 parent 49d9204 commit 31b90a4

File tree

1 file changed

+0
-3
lines changed
  • packages/orchestrator/internal/sandbox/uffd

1 file changed

+0
-3
lines changed

packages/orchestrator/internal/sandbox/uffd/serve.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"errors"
55
"fmt"
66
"syscall"
7-
"time"
87
"unsafe"
98

109
"go.uber.org/zap"
@@ -55,7 +54,6 @@ outerLoop:
5554
}
5655

5756
if err == unix.EAGAIN {
58-
time.Sleep(time.Millisecond)
5957
logger.Debug("uffd: eagain during polling, going back to polling")
6058

6159
continue
@@ -111,7 +109,6 @@ outerLoop:
111109

112110
if err == syscall.EAGAIN {
113111
// Continue polling the fd.
114-
time.Sleep(time.Millisecond)
115112
continue outerLoop
116113
}
117114

0 commit comments

Comments
 (0)