Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
WuBruno committed Oct 26, 2023
1 parent a92040c commit 5e93781
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions products/pdt/pdtlisten/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ pub async fn listen_psql(postgres_url: &str, api_url: &str) -> Result<()> {
Ok(())
}

/// Have implemented a listening system that queries the latest found block in the meta table.
/// This allows continuity from last listen or import was carried out
/// The listen also keeps track blocks that it has encountered before, discarding any seen blocks
/// If encounters a gap of block received with last seen, tries to patch it
pub async fn listen_bq(bq_project_id: &str, bq_dataset_id: &str, api_url: &str) -> Result<()> {
// let mut jobs = JoinSet::new();
let coords = ProcessCoordinates {
Expand Down

0 comments on commit 5e93781

Please sign in to comment.