1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-06 06:26:46 +00:00

add a timeout field to providers

这个提交包含在:
zyx
2020-05-25 18:24:05 +08:00
父节点 e8c7ff3d7f
当前提交 e47ba2097e
共有 7 个文件被更改,包括 23 次插入1 次删除

查看文件

@@ -19,6 +19,7 @@ type rsyncConfig struct {
useIPv6, useIPv4 bool
interval time.Duration
retry int
timeout time.Duration
}
// An RsyncProvider provides the implementation to rsync-based syncing jobs
@@ -43,6 +44,7 @@ func newRsyncProvider(c rsyncConfig) (*rsyncProvider, error) {
ctx: NewContext(),
interval: c.interval,
retry: c.retry,
timeout: c.timeout,
},
rsyncConfig: c,
}