Remove duplicated <-s.ReadyNotify()
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
This commit is contained in:
@ -101,7 +101,6 @@ func (sctx *serveCtx) serve(
|
|||||||
gopts ...grpc.ServerOption,
|
gopts ...grpc.ServerOption,
|
||||||
) (err error) {
|
) (err error) {
|
||||||
logger := defaultLog.New(io.Discard, "etcdhttp", 0)
|
logger := defaultLog.New(io.Discard, "etcdhttp", 0)
|
||||||
<-s.ReadyNotify()
|
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-s.StoppingNotify():
|
case <-s.StoppingNotify():
|
||||||
|
Reference in New Issue
Block a user