diff options
| author | Shulhan <ms@kilabit.info> | 2025-07-12 17:49:23 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-07-12 17:49:23 +0700 |
| commit | dba7aa16a4df5e89c2aea5cec1d07609f468de82 (patch) | |
| tree | ed328a4867e02693f4a4bb13cea140ec3cea7cf6 /client.go | |
| parent | ba54e6bc9aa20a1cbf2a3604345c830305449f7b (diff) | |
| download | duitku-dba7aa16a4df5e89c2aea5cec1d07609f468de82.tar.xz | |
all: add option Timeout to Client
The Timeout option affect how long the client wait for connect and waiting
for response.
Diffstat (limited to 'client.go')
| -rw-r--r-- | client.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -55,6 +55,7 @@ func NewClient(opts ClientOptions) (cl *Client, err error) { logp = `NewClient` httpcOpts = libhttp.ClientOptions{ ServerUrl: opts.ServerUrl, + Timeout: opts.Timeout, } ) |
