File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
crates/core/src/entrypoint/ampc/approximated_harmonic_centrality Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 17
17
use std:: net:: SocketAddr ;
18
18
use std:: path:: Path ;
19
19
20
+ use indicatif:: ProgressIterator ;
20
21
use rustc_hash:: FxHashMap ;
21
22
22
23
use crate :: ampc:: dht:: ShardId ;
@@ -115,7 +116,7 @@ pub fn run(config: ApproxHarmonicCoordinatorConfig) -> Result<()> {
115
116
116
117
let mut centralities: FxHashMap < webgraph:: NodeID , KahanSum > = FxHashMap :: default ( ) ;
117
118
118
- for source in sampled_nodes {
119
+ for source in sampled_nodes. into_iter ( ) . progress ( ) {
119
120
let jobs: Vec < _ > = cluster
120
121
. workers
121
122
. iter ( )
@@ -125,8 +126,6 @@ pub fn run(config: ApproxHarmonicCoordinatorConfig) -> Result<()> {
125
126
} )
126
127
. collect ( ) ;
127
128
128
- tracing:: info!( "starting {} jobs" , jobs. len( ) ) ;
129
-
130
129
let coordinator =
131
130
shortest_path:: coordinator:: build ( & cluster. dht , cluster. workers . clone ( ) , source) ;
132
131
You can’t perform that action at this time.
0 commit comments