Finish moving 'useDevMode' option handling to Config

This commit is contained in:
Chris Beams 2019-12-17 19:39:49 +01:00
parent 9ff6dd2c82
commit c6d042568a
No known key found for this signature in database
GPG Key ID: 3D214F8F5BC5ED73
3 changed files with 2 additions and 7 deletions

View File

@ -272,11 +272,6 @@ public abstract class BisqExecutable implements GracefulShutDownHandler, BisqSet
"Optional Referral ID (e.g. for API users or pro market makers)")
.withRequiredArg();
parser.accepts(Config.USE_DEV_MODE,
format("Enables dev mode which is used for convenience for developer testing (default: %s)", "false"))
.withRequiredArg()
.ofType(boolean.class);
//RpcOptionKeys
}

View File

@ -78,7 +78,7 @@ public class CoreModule extends AppModule {
bind(PersistenceProtoResolver.class).to(CorePersistenceProtoResolver.class);
bindConstant().annotatedWith(named(USE_DEV_PRIVILEGE_KEYS)).to(config.isUseDevPrivilegeKeys());
bind(boolean.class).annotatedWith(named(USE_DEV_MODE)).toInstance(config.isUseDevMode());
bindConstant().annotatedWith(named(USE_DEV_MODE)).to(config.isUseDevMode());
bind(String.class).annotatedWith(named(REFERRAL_ID)).toInstance(config.getReferralId());

View File

@ -82,7 +82,7 @@ public class ModuleForAppWithP2p extends AppModule {
bind(File.class).annotatedWith(named(KEY_STORAGE_DIR)).toInstance(config.getKeyStorageDir());
bindConstant().annotatedWith(named(USE_DEV_PRIVILEGE_KEYS)).to(config.isUseDevPrivilegeKeys());
bind(boolean.class).annotatedWith(named(USE_DEV_MODE)).toInstance(config.isUseDevMode());
bindConstant().annotatedWith(named(USE_DEV_MODE)).to(config.isUseDevMode());
bind(String.class).annotatedWith(named(REFERRAL_ID)).toInstance(config.getReferralId());
// ordering is used for shut down sequence