mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
handling Timeout inside NewClient()
This commit is contained in:
@@ -87,6 +87,10 @@ func NewClient(options *Options) *Client {
|
|||||||
ret.options.Local = true
|
ret.options.Local = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if options.Timeout > 0 {
|
||||||
|
ret.options.Timeout = options.Timeout
|
||||||
|
}
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user