embed: fix typo

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee 2018-05-25 11:15:47 -07:00
parent f5e52c995c
commit 1ebaeed5c1

View File

@ -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)
}