fix default grpc-gateway connect timeout (#3142)

master
Liam Hao 2 years ago committed by GitHub
parent 88cb35e3d5
commit bf905eaff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save