Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangxu19830126 committed Dec 31, 2018
1 parent 726ee94 commit 954269e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/proxy/dispatcher_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,11 @@ func newAPINode(meta *metapb.DispatchNode) *apiNode {

rn.httpOption = *globalHTTPOptions
if meta.ReadTimeout > 0 {
rn.httpOption.ReadTimeout = time.Second * time.Duration(meta.ReadTimeout)
rn.httpOption.ReadTimeout = time.Duration(meta.ReadTimeout)
}
if meta.WriteTimeout > 0 {
rn.httpOption.WriteTimeout = time.Second * time.Duration(meta.WriteTimeout)
rn.httpOption.WriteTimeout = time.Duration(meta.WriteTimeout)
}

return rn
}

Expand Down

0 comments on commit 954269e

Please sign in to comment.