File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
staging/src/k8s.io/apimachinery/pkg/watch Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ func (w emptyWatch) ResultChan() <-chan Event {
90
90
// FakeWatcher lets you test anything that consumes a watch.Interface; threadsafe.
91
91
type FakeWatcher struct {
92
92
result chan Event
93
- Stopped bool
93
+ stopped bool
94
94
sync.Mutex
95
95
}
96
96
@@ -110,24 +110,24 @@ func NewFakeWithChanSize(size int, blocking bool) *FakeWatcher {
110
110
func (f * FakeWatcher ) Stop () {
111
111
f .Lock ()
112
112
defer f .Unlock ()
113
- if ! f .Stopped {
113
+ if ! f .stopped {
114
114
klog .V (4 ).Infof ("Stopping fake watcher." )
115
115
close (f .result )
116
- f .Stopped = true
116
+ f .stopped = true
117
117
}
118
118
}
119
119
120
120
func (f * FakeWatcher ) IsStopped () bool {
121
121
f .Lock ()
122
122
defer f .Unlock ()
123
- return f .Stopped
123
+ return f .stopped
124
124
}
125
125
126
126
// Reset prepares the watcher to be reused.
127
127
func (f * FakeWatcher ) Reset () {
128
128
f .Lock ()
129
129
defer f .Unlock ()
130
- f .Stopped = false
130
+ f .stopped = false
131
131
f .result = make (chan Event )
132
132
}
133
133
You can’t perform that action at this time.
0 commit comments