Skip to content

Commit c03bb7d

Browse files
committed
fix typo
1 parent d2721a7 commit c03bb7d

File tree

1 file changed

+4
-2
lines changed
  • agent/agentcontainers/watcher

1 file changed

+4
-2
lines changed

agent/agentcontainers/watcher/noop.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@ package watcher
22

33
import (
44
"context"
5+
"sync"
56

67
"github.com/fsnotify/fsnotify"
78
"golang.org/x/xerrors"
89
)
910

11+
// NewNoop creates a new watcher that does nothing.
1012
func NewNoop() Watcher {
11-
return &noopWatcher{closed: make(chan struct{})}
13+
return &noopWatcher{done: make(chan struct{})}
1214
}
1315

1416
type noopWatcher struct {
15-
mu synx.Mutex
17+
mu sync.Mutex
1618
closed bool
1719
done chan struct{}
1820
}

0 commit comments

Comments
 (0)