File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed
migration/util/node-types/src/executor Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -35,23 +35,12 @@ impl MovementNode {
35
35
}
36
36
37
37
pub async fn try_from_dir ( dir : PathBuf ) -> Result < Self , anyhow:: Error > {
38
- let movement_args = MovementArgs { movement_path : Some ( dir. clone ( ) . display ( ) . to_string ( ) ) } ;
39
-
40
- // print the tokio::fs:metadata for the dir and dir/config.json
41
- println ! ( "dir: {:?}" , dir) ;
42
- let dir_metadata = tokio:: fs:: metadata ( dir. clone ( ) ) . await ?;
43
- println ! ( "dir metadata: {:?}" , dir_metadata) ;
44
- let config_metadata = tokio:: fs:: metadata ( dir. join ( "config.json" ) ) . await ?;
45
- println ! ( "config metadata: {:?}" , config_metadata) ;
46
-
47
- // because the config.json is in a nix shell, it will be reassigned read-only permissions
48
- // reassing it to be 755
49
- tokio:: fs:: set_permissions ( dir. join ( "config.json" ) , Permissions :: from_mode ( 0o755 ) )
50
- . await
51
- . context ( "failed to reset permissions on config.json" ) ?;
38
+ let movement_args =
39
+ MovementArgs { movement_path : Some ( dir. join ( ".movement" ) . display ( ) . to_string ( ) ) } ;
52
40
53
41
let config = movement_args. config ( ) . await . context ( "failed to get movement config" ) ?;
54
42
let maptos_config = config. execution_config . maptos_config ;
43
+ println ! ( "maptos config: {:?}" , maptos_config) ;
55
44
56
45
let ( sender, _receiver) = futures_channel:: mpsc:: channel ( 1024 ) ;
57
46
let opt_executor = MovementOptExecutor :: try_from_config ( maptos_config, sender)
You can’t perform that action at this time.
0 commit comments