Skip to content

Commit

Permalink
fix(torii-grpc): subscribe indexer (#2563)
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo authored Oct 22, 2024
1 parent 33fd66c commit db767df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/torii/grpc/src/server/subscriptions/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ impl IndexerManager {
let id = rand::thread_rng().gen::<usize>();
let (sender, receiver) = channel(1);

let mut statement =
"SELECT head, tps, last_block_timestamp, contract_address FROM contracts".to_string();
let mut statement = "SELECT * FROM contracts".to_string();

let contracts: Vec<ContractUpdated> = if contract_address != Felt::ZERO {
statement += " WHERE id = ?";
Expand Down

0 comments on commit db767df

Please sign in to comment.