Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deinelieblings committed Jun 13, 2024
1 parent 2330f13 commit 9d72b40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dao/update_ticker.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ func UpdateTicker() {
ticker := time.NewTicker(1 * time.Hour)
quit := make(chan struct{})
EventStateFinishTicker()
EventStateClosedTicker()
go func() {
for {
select {
case <-ticker.C:
EventStateFinishTicker()
EventStateClosed()
EventStateClosedTicker()
case <-quit:
ticker.Stop()
return
Expand All @@ -41,7 +42,7 @@ func EventStateFinishTicker() {
}

// EventStateClosed
func EventStateClosed() {
func EventStateClosedTicker() {
filter := vmdb.NewFilter()
confirmedFilter := bson.E{Key: "$or", Value: bson.A{
bson.D{
Expand Down

0 comments on commit 9d72b40

Please sign in to comment.