mirror of https://github.com/Xhofe/alist
fix: async init aria2 to optimize start duration
parent
4c5285e094
commit
4e1be9bee6
|
@ -6,9 +6,11 @@ import (
|
|||
)
|
||||
|
||||
func InitAria2() {
|
||||
go func() {
|
||||
_, err := aria2.InitClient(2)
|
||||
if err != nil {
|
||||
//utils.Log.Errorf("failed to init aria2 client: %+v", err)
|
||||
utils.Log.Infof("Aria2 not ready.")
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue