mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 12:08:05 +01:00
Remove second database for AbusiveHostRules
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
/*
|
||||
* Copyright 2013-2021 Signal Messenger, LLC
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package org.whispersystems.textsecuregcm.configuration.dynamic;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class DynamicAbusiveHostRulesMigrationConfiguration {
|
||||
|
||||
@JsonProperty
|
||||
private boolean newReadEnabled = false;
|
||||
|
||||
@JsonProperty
|
||||
private boolean newWriteEnabled = false;
|
||||
|
||||
@JsonProperty
|
||||
private boolean newPrimary = false;
|
||||
|
||||
public boolean isNewReadEnabled() {
|
||||
return newReadEnabled;
|
||||
}
|
||||
|
||||
public boolean isNewWriteEnabled() {
|
||||
return newWriteEnabled;
|
||||
}
|
||||
|
||||
public boolean isNewPrimary() {
|
||||
return newPrimary;
|
||||
}
|
||||
}
|
||||
@@ -55,14 +55,6 @@ public class DynamicConfiguration {
|
||||
@Valid
|
||||
private DynamicPushLatencyConfiguration pushLatency = new DynamicPushLatencyConfiguration(Collections.emptyMap());
|
||||
|
||||
@JsonProperty
|
||||
@Valid
|
||||
private DynamicProfileMigrationConfiguration profileMigration = new DynamicProfileMigrationConfiguration();
|
||||
|
||||
@JsonProperty
|
||||
@Valid
|
||||
private DynamicAbusiveHostRulesMigrationConfiguration abusiveHostRulesMigration = new DynamicAbusiveHostRulesMigrationConfiguration();
|
||||
|
||||
public Optional<DynamicExperimentEnrollmentConfiguration> getExperimentEnrollmentConfiguration(
|
||||
final String experimentName) {
|
||||
return Optional.ofNullable(experiments.get(experimentName));
|
||||
@@ -118,11 +110,4 @@ public class DynamicConfiguration {
|
||||
return pushLatency;
|
||||
}
|
||||
|
||||
public DynamicProfileMigrationConfiguration getProfileMigrationConfiguration() {
|
||||
return profileMigration;
|
||||
}
|
||||
|
||||
public DynamicAbusiveHostRulesMigrationConfiguration getAbusiveHostRulesMigrationConfiguration() {
|
||||
return abusiveHostRulesMigration;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
/*
|
||||
* Copyright 2013-2021 Signal Messenger, LLC
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package org.whispersystems.textsecuregcm.configuration.dynamic;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class DynamicProfileMigrationConfiguration {
|
||||
|
||||
@JsonProperty
|
||||
private boolean dynamoDbDeleteEnabled = false;
|
||||
|
||||
@JsonProperty
|
||||
private boolean dynamoDbWriteEnabled = false;
|
||||
|
||||
@JsonProperty
|
||||
private boolean dynamoDbReadForComparisonEnabled = false;
|
||||
|
||||
@JsonProperty
|
||||
private boolean dynamoDbReadPrimary = false;
|
||||
|
||||
@JsonProperty
|
||||
private boolean logMismatches = false;
|
||||
|
||||
public boolean isDynamoDbDeleteEnabled() {
|
||||
return dynamoDbDeleteEnabled;
|
||||
}
|
||||
|
||||
public boolean isDynamoDbWriteEnabled() {
|
||||
return dynamoDbWriteEnabled;
|
||||
}
|
||||
|
||||
public boolean isDynamoDbReadForComparisonEnabled() {
|
||||
return dynamoDbReadForComparisonEnabled;
|
||||
}
|
||||
|
||||
public boolean isDynamoDbReadPrimary() {
|
||||
return dynamoDbReadPrimary;
|
||||
}
|
||||
|
||||
public boolean isLogMismatches() {
|
||||
return logMismatches;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user