mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
embed: fix typo
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
f5e52c995c
commit
1ebaeed5c1
@ -220,8 +220,8 @@ func (sctx *serveCtx) registerGateway(opts []grpc.DialOption) (*gw.ServeMux, err
|
||||
ctx := sctx.ctx
|
||||
|
||||
addr := sctx.addr
|
||||
// explictly define unix network for gRPC socket support
|
||||
if network := sctx.network; network == "unix" {
|
||||
// explicitly define unix network for gRPC socket support
|
||||
addr = fmt.Sprintf("%s://%s", network, addr)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user