2022-06-29 17:37:40 +08:00
|
|
|
package bootstrap
|
|
|
|
|
2022-06-29 18:56:31 +08:00
|
|
|
import (
|
|
|
|
"github.com/alist-org/alist/v3/internal/aria2"
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
)
|
2022-06-29 17:37:40 +08:00
|
|
|
|
|
|
|
func InitAria2() {
|
|
|
|
go func() {
|
2022-07-12 14:02:29 +08:00
|
|
|
_, err := aria2.InitClient(2)
|
2022-06-29 18:56:31 +08:00
|
|
|
log.Errorf("failed to init aria2 client: %+v", err)
|
2022-06-29 17:37:40 +08:00
|
|
|
}()
|
|
|
|
}
|