mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
refactor(main): return only receiving channel from Etcd.ReadyNotify()
This commit is contained in:
parent
d000ba3ed3
commit
58e1e02688
@ -233,6 +233,6 @@ func (e *Etcd) Stop() {
|
||||
|
||||
// ReadyNotify returns a channel that is going to be closed
|
||||
// when the etcd instance is ready to accept connections.
|
||||
func (e *Etcd) ReadyNotify() chan bool {
|
||||
func (e *Etcd) ReadyNotify() <-chan bool {
|
||||
return e.readyC
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user