Skip to content

Commit d7875ef

Browse files
committed
refactor: convert index dispatch pipeline into actor model with per index channels
Signed-off-by: William Hankins <[email protected]>
1 parent 83d5c35 commit d7875ef

File tree

5 files changed

+219
-140
lines changed

5 files changed

+219
-140
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/custom_indexer/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ bincode = "1"
1818
config = { workspace = true }
1919
fjall = "2.7.0"
2020
futures = "0.3"
21+
minicbor = { workspace = true, features = ["std", "derive"] }
2122
pallas = { workspace = true}
2223
serde = { workspace = true, features = ["rc"] }
2324
tokio = { workspace = true }

modules/custom_indexer/src/chain_index.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ use pallas::ledger::traverse::MultiEraTx;
77
pub trait ChainIndex: Send + Sync + 'static {
88
fn name(&self) -> String;
99

10-
async fn handle_onchain_tx(&mut self, info: &BlockInfo, tx: &MultiEraTx<'_>) -> Result<()> {
10+
async fn handle_onchain_tx(
11+
&mut self,
12+
info: &BlockInfo,
13+
tx: &MultiEraTx<'static>,
14+
) -> Result<()> {
1115
let _ = (info, tx);
1216
Ok(())
1317
}

0 commit comments

Comments
 (0)