Skip to content

Commit

Permalink
Merge pull request #93 from neutron-org/fix/change-update-period-beha…
Browse files Browse the repository at this point in the history
…viour

fix: change behaviour for update period #NTRN-396
  • Loading branch information
pr0n00gler authored Sep 19, 2024
2 parents 12b4508 + 0bb3e17 commit adff2c9
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 adff2c9

Please sign in to comment.