Add default bot url

This commit is contained in:
Lunny Xiao
2022-11-16 13:33:13 +08:00
committed by Jason Song
parent 1a55d39adc
commit fc2c70033a
4 changed files with 46 additions and 27 deletions

View File

@ -140,7 +140,7 @@ func Init() error {
initLFS,
initRepoArchives,
initPackages,
initBuilds,
initBots,
} {
if err := f(); err != nil {
return err
@ -198,8 +198,8 @@ func initPackages() (err error) {
return err
}
func initBuilds() (err error) {
log.Info("Initialising Builds storage with type: %s", setting.Builds.Storage.Type)
Builds, err = NewStorage(setting.Builds.Storage.Type, &setting.Builds.Storage)
func initBots() (err error) {
log.Info("Initialising Bots storage with type: %s", setting.Bots.Storage.Type)
Builds, err = NewStorage(setting.Bots.Storage.Type, &setting.Bots.Storage)
return err
}