mirror of
https://github.com/tuna/tunasync.git
synced 2025-06-15 14:12:47 +00:00
fix(worker): do not init cgroup if it's not enabled
This commit is contained in:
parent
fa98e4f029
commit
f6d53c16d6
@ -53,7 +53,9 @@ func GetTUNASyncWorker(cfg *Config) *Worker {
|
|||||||
w.httpClient = httpClient
|
w.httpClient = httpClient
|
||||||
}
|
}
|
||||||
|
|
||||||
initCgroup(cfg.Cgroup.BasePath)
|
if cfg.Cgroup.Enable {
|
||||||
|
initCgroup(cfg.Cgroup.BasePath)
|
||||||
|
}
|
||||||
w.initJobs()
|
w.initJobs()
|
||||||
w.makeHTTPServer()
|
w.makeHTTPServer()
|
||||||
tunasyncWorker = w
|
tunasyncWorker = w
|
||||||
|
Loading…
x
Reference in New Issue
Block a user