@@ -6,7 +6,6 @@ use crate::subgraph::inputs::IndexingInputs;
6
6
use crate :: subgraph:: state:: IndexingState ;
7
7
use crate :: subgraph:: stream:: new_block_stream;
8
8
use anyhow:: Context as _;
9
- use async_trait:: async_trait;
10
9
use graph:: blockchain:: block_stream:: {
11
10
BlockStream , BlockStreamError , BlockStreamEvent , BlockWithTriggers , FirehoseCursor ,
12
11
} ;
@@ -1333,33 +1332,7 @@ impl Action {
1333
1332
}
1334
1333
}
1335
1334
1336
- #[ async_trait]
1337
- trait StreamEventHandler < C : Blockchain > {
1338
- async fn handle_process_wasm_block (
1339
- & mut self ,
1340
- block_ptr : BlockPtr ,
1341
- block_time : BlockTime ,
1342
- block_data : Box < [ u8 ] > ,
1343
- handler : String ,
1344
- cursor : FirehoseCursor ,
1345
- ) -> Result < Action , ProcessingError > ;
1346
- async fn handle_process_block (
1347
- & mut self ,
1348
- block : BlockWithTriggers < C > ,
1349
- cursor : FirehoseCursor ,
1350
- ) -> Result < Action , Error > ;
1351
- async fn handle_revert (
1352
- & mut self ,
1353
- revert_to_ptr : BlockPtr ,
1354
- cursor : FirehoseCursor ,
1355
- ) -> Result < Action , Error > ;
1356
- async fn handle_err ( & mut self , err : CancelableError < BlockStreamError > )
1357
- -> Result < Action , Error > ;
1358
- fn needs_restart ( & self , revert_to_ptr : BlockPtr , subgraph_ptr : BlockPtr ) -> bool ;
1359
- }
1360
-
1361
- #[ async_trait]
1362
- impl < C , T > StreamEventHandler < C > for SubgraphRunner < C , T >
1335
+ impl < C , T > SubgraphRunner < C , T >
1363
1336
where
1364
1337
C : Blockchain ,
1365
1338
T : RuntimeHostBuilder < C > ,
0 commit comments