Skip to content

Commit

Permalink
Merge pull request #1945 from HenrikJannsen/update-PRIORITY-in-MetaData
Browse files Browse the repository at this point in the history
Change PRIORITY in MetaData
  • Loading branch information
alvasw authored Mar 30, 2024
2 parents e240aa0 + e66c04e commit 5d7cf09
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

import java.util.Set;

import static bisq.network.p2p.services.data.storage.MetaData.HIGH_PRIORITY;
import static bisq.network.p2p.services.data.storage.MetaData.HIGHEST_PRIORITY;
import static bisq.network.p2p.services.data.storage.MetaData.TTL_100_DAYS;

@Slf4j
Expand All @@ -44,7 +44,7 @@
public final class ReleaseNotification implements AuthorizedDistributedData {
public final static int MAX_MESSAGE_LENGTH = 10_000;

private final MetaData metaData = new MetaData(TTL_100_DAYS, HIGH_PRIORITY, getClass().getSimpleName());
private final MetaData metaData = new MetaData(TTL_100_DAYS, HIGHEST_PRIORITY, getClass().getSimpleName());
private final String id;
private final long date;
private final boolean isPreRelease;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import java.util.Optional;
import java.util.Set;

import static bisq.network.p2p.services.data.storage.MetaData.HIGH_PRIORITY;
import static bisq.network.p2p.services.data.storage.MetaData.HIGHEST_PRIORITY;
import static bisq.network.p2p.services.data.storage.MetaData.TTL_30_DAYS;

@Slf4j
Expand All @@ -46,7 +46,7 @@
public final class AuthorizedAlertData implements AuthorizedDistributedData {
public final static int MAX_MESSAGE_LENGTH = 1000;

private final MetaData metaData = new MetaData(TTL_30_DAYS, HIGH_PRIORITY, getClass().getSimpleName());
private final MetaData metaData = new MetaData(TTL_30_DAYS, HIGHEST_PRIORITY, getClass().getSimpleName());
private final String id;
private final long date;
private final AlertType alertType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@

import java.util.Set;

import static bisq.network.p2p.services.data.storage.MetaData.HIGH_PRIORITY;
import static bisq.network.p2p.services.data.storage.MetaData.HIGHEST_PRIORITY;
import static bisq.network.p2p.services.data.storage.MetaData.TTL_100_DAYS;

@Slf4j
@ToString
@EqualsAndHashCode
@Getter
public final class AuthorizedDifficultyAdjustmentData implements AuthorizedDistributedData {
private final MetaData metaData = new MetaData(TTL_100_DAYS, HIGH_PRIORITY, getClass().getSimpleName());
private final MetaData metaData = new MetaData(TTL_100_DAYS, HIGHEST_PRIORITY, getClass().getSimpleName());
private final long date;
private final double difficultyAdjustmentFactor;
private final String securityManagerProfileId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@

import java.util.Set;

import static bisq.network.p2p.services.data.storage.MetaData.HIGH_PRIORITY;
import static bisq.network.p2p.services.data.storage.MetaData.HIGHEST_PRIORITY;
import static bisq.network.p2p.services.data.storage.MetaData.TTL_100_DAYS;

@Slf4j
@ToString
@EqualsAndHashCode
@Getter
public final class AuthorizedMinRequiredReputationScoreData implements AuthorizedDistributedData {
private final MetaData metaData = new MetaData(TTL_100_DAYS, HIGH_PRIORITY, getClass().getSimpleName());
private final MetaData metaData = new MetaData(TTL_100_DAYS, HIGHEST_PRIORITY, getClass().getSimpleName());
private final long date;
private final long minRequiredReputationScore;
private final String securityManagerProfileId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@

import java.util.Set;

import static bisq.network.p2p.services.data.storage.MetaData.HIGH_PRIORITY;
import static bisq.network.p2p.services.data.storage.MetaData.HIGHEST_PRIORITY;
import static bisq.network.p2p.services.data.storage.MetaData.TTL_100_DAYS;

@Slf4j
@EqualsAndHashCode
@Getter
public final class BannedUserProfileData implements AuthorizedDistributedData {
private final MetaData metaData = new MetaData(TTL_100_DAYS, HIGH_PRIORITY, getClass().getSimpleName());
private final MetaData metaData = new MetaData(TTL_100_DAYS, HIGHEST_PRIORITY, getClass().getSimpleName());
private final UserProfile userProfile;
private final boolean staticPublicKeysProvided;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import java.util.Date;
import java.util.Set;

import static bisq.network.p2p.services.data.storage.MetaData.HIGHEST_PRIORITY;
import static bisq.network.p2p.services.data.storage.MetaData.HIGH_PRIORITY;
import static bisq.network.p2p.services.data.storage.MetaData.TTL_100_DAYS;

@Slf4j
Expand All @@ -42,7 +42,7 @@
public final class AuthorizedAccountAgeData implements AuthorizedDistributedData {
public static final long TTL = TTL_100_DAYS;

private final MetaData metaData = new MetaData(TTL, HIGHEST_PRIORITY, getClass().getSimpleName());
private final MetaData metaData = new MetaData(TTL, HIGH_PRIORITY, getClass().getSimpleName());
private final String profileId;
private final long date;
private final boolean staticPublicKeysProvided;
Expand Down

0 comments on commit 5d7cf09

Please sign in to comment.