Merge pull request #15051 from JOJO0527/patch-2

etcdserver: fix typo in comment
dependabot/go_modules/go.uber.org/atomic-1.10.0
Piotr Tabor 2022-12-28 14:14:09 +01:00 committed by GitHub
commit abf80a8e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1272,11 +1272,11 @@ func (s *EtcdServer) stopWithDelay(d time.Duration, err error) {
}
}
// StopNotify returns a channel that receives a empty struct
// StopNotify returns a channel that receives an empty struct
// when the server is stopped.
func (s *EtcdServer) StopNotify() <-chan struct{} { return s.done }
// StoppingNotify returns a channel that receives a empty struct
// StoppingNotify returns a channel that receives an empty struct
// when the server is being stopped.
func (s *EtcdServer) StoppingNotify() <-chan struct{} { return s.stopping }