Skip to content

Commit

Permalink
change behaviour for update period
Browse files Browse the repository at this point in the history
  • Loading branch information
joldie777 committed Sep 13, 2024
1 parent 3007fd7 commit 0bb3e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/subscriber/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (s *Subscriber) processBlockEvent(ctx context.Context, tasks chan neutronty

for _, activeQuery := range s.activeQueries {
// Skip the ActiveQuery if we didn't reach the update time.
if currentHeight < (activeQuery.LastSubmittedResultLocalHeight + activeQuery.UpdatePeriod) {
if activeQuery.LastSubmittedResultLocalHeight != 0 && currentHeight < (activeQuery.LastSubmittedResultLocalHeight+activeQuery.UpdatePeriod) {
continue
}

Expand Down

0 comments on commit 0bb3e17

Please sign in to comment.