diff --git a/cmd/pruner/pruner.go b/cmd/pruner/pruner.go index 9655c95..42b8105 100644 --- a/cmd/pruner/pruner.go +++ b/cmd/pruner/pruner.go @@ -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) {