fix default grpc-gateway connect timeout (#3142)

This commit is contained in:
Liam Hao
2023-04-20 23:13:13 +08:00
committed by GitHub
parent 88cb35e3d5
commit bf905eaff3

View File

@@ -38,6 +38,7 @@ func MustNewServer(c GatewayConf, opts ...Option) *Server {
svr := &Server{
Server: rest.MustNewServer(c.RestConf),
upstreams: c.Upstreams,
timeout: time.Duration(c.Timeout) * time.Millisecond,
}
for _, opt := range opts {
opt(svr)