mirror of
https://github.com/google/nomulus
synced 2026-01-03 11:45:39 +00:00
Add some more configs to ConfigModule and provide it in flow tests
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=133079669
This commit is contained in:
@@ -658,4 +658,22 @@ public final class ConfigModule {
|
||||
public static Duration provideMetricsWriteInterval() {
|
||||
return Duration.standardSeconds(60);
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Config("contactAutomaticTransferLength")
|
||||
public static Duration provideContactAutomaticTransferLength(RegistryConfig config) {
|
||||
return config.getContactAutomaticTransferLength();
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Config("asyncDeleteFlowMapreduceDelay")
|
||||
public static Duration provideAsyncDeleteFlowMapreduceDelay(RegistryConfig config) {
|
||||
return config.getAsyncDeleteFlowMapreduceDelay();
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Config("maxChecks")
|
||||
public static int provideMaxChecks(RegistryConfig config) {
|
||||
return config.getMaxChecks();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user