Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Dec 6, 2024
1 parent 8fe9819 commit 17b37ae
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions src/analytics/enrich_account_funding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,25 +196,13 @@ impl BalanceTracker {
let data = self.to_cypher_map(*id)?;
let query_literal = generate_cypher_query(data);
let query = Query::new(query_literal);
let result = pool.execute(query).await;

match result {
Ok(mut d) => {
while let r = d.next().await {
match r {
Ok(row) => {
if let Some(r) = row {
if let Ok(i) = r.get::<u64>("merged_relations") {
trace!("merged ledger in tx: {i}");
merged_relations += i;
};
}
}
Err(e) => error!("could not parse row in cypher query response: {}", e),
}
}
}
Err(e) => error!("could not get response in cypher query response: {}", e),
let mut result = pool.execute(query).await?;

while let Some(r) = result.next().await? {
if let Ok(i) = r.get::<u64>("merged_relations") {
trace!("merged ledger in tx: {i}");
merged_relations += i;
};
}
}
Ok(merged_relations)
Expand Down

0 comments on commit 17b37ae

Please sign in to comment.