mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Merge pull request #82193 from yutedz/svr-evt-ret
Early return after sending to errCh in Options#eventHandler
This commit is contained in:
commit
681df277f5
@ -252,6 +252,7 @@ func (o *Options) eventHandler(ent fsnotify.Event) {
|
|||||||
if eventOpIs(fsnotify.Write) || eventOpIs(fsnotify.Rename) {
|
if eventOpIs(fsnotify.Write) || eventOpIs(fsnotify.Rename) {
|
||||||
// error out when ConfigFile is updated
|
// error out when ConfigFile is updated
|
||||||
o.errCh <- fmt.Errorf("content of the proxy server's configuration file was updated")
|
o.errCh <- fmt.Errorf("content of the proxy server's configuration file was updated")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
o.errCh <- nil
|
o.errCh <- nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user