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() {
|
func InitAria2() {
|
||||||
_, err := aria2.InitClient(2)
|
go func() {
|
||||||
if err != nil {
|
_, err := aria2.InitClient(2)
|
||||||
//utils.Log.Errorf("failed to init aria2 client: %+v", err)
|
if err != nil {
|
||||||
utils.Log.Infof("Aria2 not ready.")
|
//utils.Log.Errorf("failed to init aria2 client: %+v", err)
|
||||||
}
|
utils.Log.Infof("Aria2 not ready.")
|
||||||
|
}
|
||||||
|
}()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue