Closed telezhnaya closed 3 years ago
Also, let's refactor the aggregated modules system. One idea:
# src/main.rs
self::aggregations::run_in_background();
# src/aggregations/mod.rs
fn run_in_background() {
tokio::spawn(self::circulating_supply::run_in_background());
}
# src/aggregations/circulating_supply/mod.rs
async fn run_in_background() {}
https://github.com/near/near-indexer-for-explorer/pull/136#discussion_r685919267
https://nick.groenen.me/posts/rust-error-handling/