@@ -6,7 +6,6 @@ use crate::subgraph::inputs::IndexingInputs;
66use crate :: subgraph:: state:: IndexingState ;
77use crate :: subgraph:: stream:: new_block_stream;
88use anyhow:: Context as _;
9- use async_trait:: async_trait;
109use graph:: blockchain:: block_stream:: {
1110 BlockStream , BlockStreamError , BlockStreamEvent , BlockWithTriggers , FirehoseCursor ,
1211} ;
@@ -1333,33 +1332,7 @@ impl Action {
13331332 }
13341333}
13351334
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 >
13631336where
13641337 C : Blockchain ,
13651338 T : RuntimeHostBuilder < C > ,
0 commit comments