Remove duplicated <-s.ReadyNotify()

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
This commit is contained in:
Benjamin Wang
2024-12-13 10:44:14 +00:00
parent 026bbecd25
commit 16ccfc9537

View File

@ -101,7 +101,6 @@ func (sctx *serveCtx) serve(
gopts ...grpc.ServerOption,
) (err error) {
logger := defaultLog.New(io.Discard, "etcdhttp", 0)
<-s.ReadyNotify()
select {
case <-s.StoppingNotify():