fix default grpc-gateway connect timeout (#3142)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user