mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Add logs
This commit is contained in:
parent
026858d8b1
commit
873b557ce8
@ -53,6 +53,7 @@ public class RemovedPayloadsService implements PersistedDataHost {
|
||||
persisted.getDateByHashes().entrySet().stream()
|
||||
.filter(e -> e.getValue() < cutOffDate)
|
||||
.forEach(e -> removedPayloadsMap.getDateByHashes().put(e.getKey(), e.getValue()));
|
||||
log.trace("readPersisted: removedPayloadsMap={}", removedPayloadsMap);
|
||||
persistenceManager.requestPersistence();
|
||||
completeHandler.run();
|
||||
},
|
||||
@ -60,10 +61,12 @@ public class RemovedPayloadsService implements PersistedDataHost {
|
||||
}
|
||||
|
||||
public boolean wasRemoved(P2PDataStorage.ByteArray hashOfPayload) {
|
||||
log.trace("called wasRemoved: hashOfPayload={}, removedPayloadsMap={}", hashOfPayload.toString(), removedPayloadsMap);
|
||||
return removedPayloadsMap.getDateByHashes().containsKey(hashOfPayload);
|
||||
}
|
||||
|
||||
public void addHash(P2PDataStorage.ByteArray hashOfPayload) {
|
||||
log.trace("called addHash: hashOfPayload={}, removedPayloadsMap={}", hashOfPayload.toString(), removedPayloadsMap);
|
||||
removedPayloadsMap.getDateByHashes().put(hashOfPayload, System.currentTimeMillis());
|
||||
persistenceManager.requestPersistence();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user