Ajouter autoseed pendant serverCmd #66

Merged
vlbeaudoin merged 3 commits from feature/autoseed into main 2023-07-04 20:37:46 -04:00
Showing only changes of commit 03cef363cd - Show all commits

View file

@ -46,6 +46,18 @@ var serverCmd = &cobra.Command{
log.Fatal(err)
}
mediaClient, err := media.NewMediaClientFromViper()
if err != nil {
log.Fatal(err)
}
new_buckets, err := mediaClient.Seed()
if err != nil {
log.Fatal(err)
}
log.Printf("Seeded %d buckets.\n", len(new_buckets))
RunServer()
},
}