pruner: loop every 5 mins
This commit is contained in:
parent
cfe2bfdc2d
commit
17bb653939
1 changed files with 4 additions and 1 deletions
|
@ -23,7 +23,10 @@ func main() {
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
|
ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
|
for {
|
||||||
run(ctx, playerStore, vehicleStore)
|
run(ctx, playerStore, vehicleStore)
|
||||||
|
time.Sleep(5 * time.Minute)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func run(ctx context.Context, ps store.IPlayerStore, vs store.IVehicleStore) {
|
func run(ctx context.Context, ps store.IPlayerStore, vs store.IVehicleStore) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue