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

feature(worker): LogLimiter hook

这个提交包含在:
bigeagle
2016-04-28 14:58:43 +08:00
父节点 23c3125cbf
当前提交 9afd47ddcb
共有 4 个文件被更改,包括 267 次插入0 次删除

查看文件

@@ -44,6 +44,18 @@ func (m *mirrorJob) Name() string {
return m.provider.Name()
}
func (m *mirrorJob) Stopped() bool {
if !m.enabled {
return true
}
select {
case <-m.stopped:
return true
default:
return false
}
}
// runMirrorJob is the goroutine where syncing job runs in
// arguments:
// provider: mirror provider object