File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
networks/movement/indexer-v2/src Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
use aptos_indexer_processor_sdk:: server_framework:: RunnableConfig ;
2
2
use godfig:: { backend:: config_file:: ConfigFile , Godfig } ;
3
- use maptos_execution_util :: config :: Config ;
3
+ use movement_config :: Config ;
4
4
use movement_health:: run_service;
5
5
use movement_tracing:: simple_metrics:: start_metrics_server;
6
6
use processor_v2:: config:: indexer_processor_config:: IndexerProcessorConfig ;
@@ -94,13 +94,13 @@ async fn load_maptos_config() -> anyhow::Result<Config> {
94
94
// get the config file
95
95
let dot_movement = dot_movement:: DotMovement :: try_from_env ( ) ?;
96
96
97
- // Load Maptos config
98
- let maptos_config = {
97
+ // Load config
98
+ let config = {
99
99
let config_file = dot_movement. try_get_or_create_config_file ( ) . await ?;
100
- let godfig: Godfig < maptos_execution_util :: config :: Config , ConfigFile > =
101
- Godfig :: new ( ConfigFile :: new ( config_file) , vec ! [ "maptos_config" . to_string ( ) ] ) ;
100
+ let godfig: Godfig < Config , ConfigFile > =
101
+ Godfig :: new ( ConfigFile :: new ( config_file) , vec ! [ ] ) ;
102
102
godfig. try_wait_for_ready ( ) . await
103
103
} ?;
104
104
105
- Ok ( maptos_config )
105
+ Ok ( config )
106
106
}
You can’t perform that action at this time.
0 commit comments