Skip to content

Commit

Permalink
fix: check for legacy_scalar field
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus committed Nov 5, 2024
1 parent 674ae61 commit ca61e47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ async fn handle_source_msg(
} => {
if aggregation_timestamp >= start_timestamp {
for indexer_query in &data.indexer_queries {
if indexer_query.legacy_scalar.unwrap_or(false) {
continue;
}
let key = IndexerFeesKey {
signer: Address::from_slice(&data.receipt_signer)?,
receiver: Address::from_slice(&indexer_query.indexer)?,
Expand Down
4 changes: 2 additions & 2 deletions src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ pub struct IndexerQueryProtobuf {
pub indexer_errors: String,
#[prost(uint64, tag = "11")]
pub blocks_behind: u64,
#[prost(bool, tag = "12")]
pub legacy_scalar: bool,
#[prost(bool, optional, tag = "12")]
pub legacy_scalar: Option<bool>,
}

#[derive(prost::Message)]
Expand Down

0 comments on commit ca61e47

Please sign in to comment.