handling Timeout inside NewClient()

This commit is contained in:
Daniel Joudat
2021-06-11 22:03:59 +03:00
parent b0c2e0b5c3
commit 6f6c4595f8

View File

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