mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

Before this change: ``` gwmux, err = sctx.registerGateway([]grpc.DialOption{grpc.WithInsecure()}) if err != nil { return err; } ``` caused the Etcd.Serve() method finish without sctx.serversC channel being closed. The code closing Etcd got stuck waiting for all the servers to be running. Signed-off-by: Piotr Tabor <ptab@google.com>