Remove filter for ExpirablePayload

ProtectedStorageEntry::backDate() already handles this
This commit is contained in:
Julian Knutsen 2019-12-04 17:28:17 -08:00
parent b166009398
commit 7b8d346aea
No known key found for this signature in database
GPG key ID: D85F536DB3615B2D

View file

@ -450,7 +450,6 @@ public class P2PDataStorage implements MessageListener, ConnectionListener, Pers
// Backdate all the eligible payloads based on the node that disconnected // Backdate all the eligible payloads based on the node that disconnected
map.values().stream() map.values().stream()
.filter(protectedStorageEntry -> protectedStorageEntry.getProtectedStoragePayload() instanceof ExpirablePayload)
.filter(protectedStorageEntry -> protectedStorageEntry.getProtectedStoragePayload() instanceof RequiresOwnerIsOnlinePayload) .filter(protectedStorageEntry -> protectedStorageEntry.getProtectedStoragePayload() instanceof RequiresOwnerIsOnlinePayload)
.filter(protectedStorageEntry -> ((RequiresOwnerIsOnlinePayload) protectedStorageEntry.getProtectedStoragePayload()).getOwnerNodeAddress().equals(peersNodeAddress)) .filter(protectedStorageEntry -> ((RequiresOwnerIsOnlinePayload) protectedStorageEntry.getProtectedStoragePayload()).getOwnerNodeAddress().equals(peersNodeAddress))
.forEach(protectedStorageEntry -> { .forEach(protectedStorageEntry -> {