mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Finish moving 'useDevMode' option handling to Config
This commit is contained in:
parent
9ff6dd2c82
commit
c6d042568a
@ -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
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user