Wei Fu 9e974792f9 server/embed: fix data race when start insecure grpc
There are two goroutines accessing the `gs` grpc server var. Before
insecure `gs` server start, the `gs` can be changed to secure server and
then the client will fail to connect to etcd with insecure request. It
is data-race. We should use argument for reference in the new goroutine.

fix: #15495

Signed-off-by: Wei Fu <fuweid89@gmail.com>
(cherry picked from commit a9988e2625eede1af81d189b5f2ecf7d4af3edf1)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-03-20 20:41:49 +08:00
..
2023-03-15 14:10:14 +13:00
2023-03-20 12:04:43 +01:00
2023-02-20 12:52:43 +13:00
2020-10-26 13:02:32 +01:00
2020-10-26 13:02:32 +01:00
2023-02-20 21:33:59 +13:00