Skip to content

Commit

Permalink
chore(sinks): migrated assert sink
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobressan committed Jul 18, 2023
1 parent aff854b commit a86f3ec
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 224 deletions.
64 changes: 0 additions & 64 deletions src/sinks/_pending/assert/checks.rs

This file was deleted.

6 changes: 0 additions & 6 deletions src/sinks/_pending/assert/mod.rs

This file was deleted.

26 changes: 0 additions & 26 deletions src/sinks/_pending/assert/prelude.rs

This file was deleted.

91 changes: 0 additions & 91 deletions src/sinks/_pending/assert/run.rs

This file was deleted.

31 changes: 0 additions & 31 deletions src/sinks/_pending/assert/setup.rs

This file was deleted.

7 changes: 1 addition & 6 deletions src/sinks/assert/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,6 @@ impl gasket::framework::Worker<Stage> for Worker {
run_check!(&stage.config, &self.state, tx_records_matches_block_count);
run_check!(&stage.config, &self.state, tx_has_input_and_output);

if let Some(event) = &self.state.current_event {
// notify pipeline about the progress
// utils.track_sink_progress(event);
}

stage.ops_count.inc(1);
stage.latest_block.set(point.slot_or_default() as i64);
stage.cursor.add_breadcrumb(point.clone());
Expand All @@ -117,7 +112,7 @@ impl gasket::framework::Worker<Stage> for Worker {
}

#[derive(Stage)]
#[stage(name = "sink-aws-sqs", unit = "ChainEvent", worker = "Worker")]
#[stage(name = "sink-assert", unit = "ChainEvent", worker = "Worker")]
pub struct Stage {
config: Config,
cursor: Cursor,
Expand Down

0 comments on commit a86f3ec

Please sign in to comment.