@@ -417,21 +417,21 @@ class SystemStore extends EventEmitter {
417
417
}
418
418
}
419
419
420
- async load ( since , load_from_core_step ) {
420
+ async load ( since , load_source ) {
421
421
//if endpoints load from core, and this load is for core
422
- //(ie, the first load_system_store() out of two with load_from_core_step === 'CORE'),
422
+ //(ie, the first load_system_store() out of two with load_source === 'CORE'),
423
423
//then endpoints skip it.
424
424
//endpoints will be updated in the next load_system_store()
425
425
//once core's in memory system store is updated.
426
- if ( load_from_core_step && ( this . source !== load_from_core_step ) ) {
426
+ if ( load_source && ( this . source !== load_source ) ) {
427
427
return ;
428
428
}
429
429
430
430
// serializing load requests since we have to run a fresh load after the previous one will finish
431
431
// because it might not see the latest changes if we don't reload right after make_changes.
432
432
return this . _load_serial . surround ( async ( ) => {
433
433
try {
434
- dbg . log3 ( 'SystemStore: loading ... this.last_update_time =' , this . last_update_time , ", since =" , since , "load_from_core_step =" , load_from_core_step ) ;
434
+ dbg . log3 ( 'SystemStore: loading ... this.last_update_time =' , this . last_update_time , ", since =" , since , "load_source =" , load_source ) ;
435
435
436
436
// If we get a load request with an timestamp older then our last update time
437
437
// we ensure we load everyting from that timestamp by updating our last_update_time.
@@ -687,7 +687,7 @@ class SystemStore extends EventEmitter {
687
687
method_api : 'server_inter_process_api' ,
688
688
method_name : 'load_system_store' ,
689
689
target : '' ,
690
- request_params : { since : last_update , load_from_core_step : SOURCE . DB }
690
+ request_params : { since : last_update , load_source : SOURCE . DB }
691
691
} ) ;
692
692
693
693
//if endpoints are loading system store from core, we need to wait until
@@ -699,7 +699,7 @@ class SystemStore extends EventEmitter {
699
699
method_api : 'server_inter_process_api' ,
700
700
method_name : 'load_system_store' ,
701
701
target : '' ,
702
- request_params : { since : last_update , load_from_core_step : SOURCE . CORE }
702
+ request_params : { since : last_update , load_source : SOURCE . CORE }
703
703
} ) ;
704
704
}
705
705
}
0 commit comments