Skip to content

Commit b685bbf

Browse files
committed
exporter.rs: Fix negative time delta in unchanged data filtering
1 parent 6bbae6f commit b685bbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agent/solana/exporter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ impl Exporter {
315315
// Filter out unchanged price data if the max delay wasn't reached
316316

317317
if let Some(last_info) = self.last_published_state.get(identifier) {
318-
if (last_info.timestamp - info.timestamp)
318+
if (info.timestamp - last_info.timestamp)
319319
> self.config.unchanged_publish_threshold.as_secs() as i64
320320
{
321321
true // max delay since last published state reached, we publish anyway

0 commit comments

Comments
 (0)