mirror of https://github.com/restic/restic.git
rclone: Fix timeout calculation
This commit is contained in:
parent
43d173b042
commit
b0e64deb27
|
@ -222,7 +222,7 @@ func newBackend(cfg Config, lim limiter.Limiter) (*Backend, error) {
|
||||||
// send an HTTP request to the base URL, see if the server is there
|
// send an HTTP request to the base URL, see if the server is there
|
||||||
client := &http.Client{
|
client := &http.Client{
|
||||||
Transport: debug.RoundTripper(tr),
|
Transport: debug.RoundTripper(tr),
|
||||||
Timeout: cfg.Timeout * 60 * time.Second,
|
Timeout: cfg.Timeout,
|
||||||
}
|
}
|
||||||
|
|
||||||
// request a random file which does not exist. we just want to test when
|
// request a random file which does not exist. we just want to test when
|
||||||
|
|
|
@ -21,7 +21,7 @@ var defaultConfig = Config{
|
||||||
Program: "rclone",
|
Program: "rclone",
|
||||||
Args: "serve restic --stdio --b2-hard-delete",
|
Args: "serve restic --stdio --b2-hard-delete",
|
||||||
Connections: 5,
|
Connections: 5,
|
||||||
Timeout: "1m",
|
Timeout: time.Minute,
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
Loading…
Reference in New Issue