Explorar o código

refactor(main): return only receiving channel from Etcd.ReadyNotify()

Cenk Alti %!s(int64=11) %!d(string=hai) anos
pai
achega
58e1e02688
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      etcd/etcd.go

+ 1 - 1
etcd/etcd.go

@@ -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
 }