mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Remove static from initialRequestApplied
Previously, multiple handlers needed to signal off one global variable. Now, that this check is inside the singleton P2PDataStorage, make it non-static and private.
This commit is contained in:
parent
a34488b735
commit
3d6e9fbef5
2 changed files with 1 additions and 4 deletions
|
@ -118,9 +118,7 @@ public class P2PDataStorage implements MessageListener, ConnectionListener, Pers
|
|||
@VisibleForTesting
|
||||
public static int CHECK_TTL_INTERVAL_SEC = 60;
|
||||
|
||||
// TODO: Remove static
|
||||
@VisibleForTesting
|
||||
static boolean initialRequestApplied = false;
|
||||
private boolean initialRequestApplied = false;
|
||||
|
||||
private final Broadcaster broadcaster;
|
||||
private final AppendOnlyDataStoreService appendOnlyDataStoreService;
|
||||
|
|
|
@ -52,7 +52,6 @@ public class P2PDataStorageProcessGetDataResponse {
|
|||
public void setUp() {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
this.testState = new TestState();
|
||||
P2PDataStorage.initialRequestApplied = false;
|
||||
|
||||
this.peerNodeAddress = new NodeAddress("peer", 8080);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue