commit | 4605909ee294d50fc625ec2a6358d4d1197bac9b | [log] [tgz] |
---|---|---|
author | little-cui <sure_0757@qq.com> | Mon Aug 14 14:18:07 2017 +0800 |
committer | Mohammad Asif Siddiqui <mohammad.asif.siddiqui1@huawei.com> | Mon Aug 14 14:18:07 2017 +0800 |
tree | a68f3b5666a52e6e54f2a0d85de4a2caf60eb28d | |
parent | d26cc3ef533c7630cdd356be87095250c4fb15e2 [diff] |
Set http client util default timeout. (#61)
diff --git a/util/rest/client.go b/util/rest/client.go index c6c8032..0d8c0dd 100644 --- a/util/rest/client.go +++ b/util/rest/client.go
@@ -91,6 +91,7 @@ gzip: gzip, client: &http.Client{ Transport: transport, + Timeout: 30 * time.Second, }, }