<p></p>
<p><b>@chimp1984</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/bisq-network/bisq/pull/5072#discussion_r555880299">p2p/src/main/java/bisq/network/p2p/storage/RemovedPayloadsStorageService.java</a>:</p>
<pre style='color:#555'>> + this.persistenceManager = persistenceManager;
+
+ this.persistenceManager.initialize(removedPayloadsMap, PersistenceManager.Source.PRIVATE_LOW_PRIO);
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////////////////////
+ // PersistedDataHost
+ ///////////////////////////////////////////////////////////////////////////////////////////
+
+ @Override
+ public void readPersisted(Runnable completeHandler) {
+ long cutOffDate = System.currentTimeMillis() - MailboxStoragePayload.TTL;
+ persistenceManager.readPersisted(persisted -> {
+ persisted.getDateByHashes().entrySet().stream()
+ .filter(e -> e.getValue() < cutOffDate)
</pre>
<p>Ups that is wrong. Should <code>></code>. It cleans out old entries so it does not grow endlessly.<br>
The class it to persist the remove call so we do not add again removed mailbox messages. I will add some comments as well.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/pull/5072#discussion_r555880299">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNSWBU6SJU4TXLUPN63SZRWFFANCNFSM4V43SQAA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNUC2ANKVTXIXFHMLO3SZRWFFA5CNFSM4V43SQAKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOEHBNJBY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/pull/5072#discussion_r555880299",
"url": "https://github.com/bisq-network/bisq/pull/5072#discussion_r555880299",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>