Skip to content

Commit 38d72a7

Browse files
committed
adjust code
1 parent 0ee371f commit 38d72a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grogu/signaller/signaller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func (h *Signaller) shouldUpdatePrice(
290290
// add TimeBuffer to make sure the thresholdTime is not too early.
291291
thresholdTime := time.Unix(valPrice.Timestamp+h.params.CooldownTime+TimeBuffer, 0)
292292

293-
if thresholdTime.After(now) {
293+
if now.Before(thresholdTime) {
294294
return false
295295
}
296296

0 commit comments

Comments
 (0)