File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -353,11 +353,11 @@ impl Accounts {
353
353
/// This is an auxiliary function and not part of public API.
354
354
/// Use [Accounts::background_fetch] instead.
355
355
async fn background_fetch_no_timeout ( accounts : Vec < Context > , events : Events ) {
356
+ let n_accounts = accounts. len ( ) ;
356
357
events. emit ( Event {
357
358
id : 0 ,
358
359
typ : EventType :: Info ( format ! (
359
- "Starting background fetch for {} accounts." ,
360
- accounts. len( )
360
+ "Starting background fetch for {n_accounts} accounts."
361
361
) ) ,
362
362
} ) ;
363
363
let mut set = JoinSet :: new ( ) ;
@@ -369,6 +369,12 @@ impl Accounts {
369
369
} ) ;
370
370
}
371
371
set. join_all ( ) . await ;
372
+ events. emit ( Event {
373
+ id : 0 ,
374
+ typ : EventType :: Info ( format ! (
375
+ "Finished background fetch for {n_accounts} accounts."
376
+ ) ) ,
377
+ } ) ;
372
378
}
373
379
374
380
/// Auxiliary function for [Accounts::background_fetch].
You can’t perform that action at this time.
0 commit comments