Skip to content

Commit

Permalink
patches
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Dec 10, 2024
1 parent 9d1717a commit 8574120
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/analytics/offline_matching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,12 @@ impl Matching {
end: DateTime<Utc>,
save_dir: Option<PathBuf>,
) -> Result<()> {
let mut top_n = 10;
while top_n < 50 {
let mut top_n = 3;
while top_n < 20 {
let _ = self
.breadth_search_by_dates(pool, top_n, start, end, &save_dir)
.await; // don't error
top_n += 5;
top_n += 3;
}
Ok(())
}
Expand All @@ -233,7 +233,7 @@ impl Matching {
// this may retry a number of users, but with more users discovered
// the search space gets smaller
for d in days_in_range(start, end) {
info!("day: {}", d);
println!("day: {}", d);
let next_list = get_exchange_users(pool, top_n, start, d).await?;

// TODO: pick top of deposits
Expand Down
2 changes: 1 addition & 1 deletion tests/test_analytics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ async fn test_offline_analytics_matching() -> Result<()> {
.depth_search_by_top_n_accounts(
&pool,
parse_date("2024-01-07"),
parse_date("2024-07-22"),
parse_date("2024-03-13"),
Some(dir),
)
.await;
Expand Down

0 comments on commit 8574120

Please sign in to comment.