pruner: loop every 5 mins

This commit is contained in:
41666 2024-11-13 20:55:09 -08:00
parent cfe2bfdc2d
commit 17bb653939

View file

@ -23,7 +23,10 @@ func main() {
ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
defer cancel()
run(ctx, playerStore, vehicleStore)
for {
run(ctx, playerStore, vehicleStore)
time.Sleep(5 * time.Minute)
}
}
func run(ctx context.Context, ps store.IPlayerStore, vs store.IVehicleStore) {