mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 09:00:20 +08:00
fix default grpc-gateway connect timeout (#3142)
This commit is contained in:
parent
88cb35e3d5
commit
bf905eaff3
@ -38,6 +38,7 @@ func MustNewServer(c GatewayConf, opts ...Option) *Server {
|
|||||||
svr := &Server{
|
svr := &Server{
|
||||||
Server: rest.MustNewServer(c.RestConf),
|
Server: rest.MustNewServer(c.RestConf),
|
||||||
upstreams: c.Upstreams,
|
upstreams: c.Upstreams,
|
||||||
|
timeout: time.Duration(c.Timeout) * time.Millisecond,
|
||||||
}
|
}
|
||||||
for _, opt := range opts {
|
for _, opt := range opts {
|
||||||
opt(svr)
|
opt(svr)
|
||||||
|
Loading…
Reference in New Issue
Block a user