Skip to content

Commit

Permalink
Remove filter for ExpirablePayload
Browse files Browse the repository at this point in the history
ProtectedStorageEntry::backDate() already handles this
  • Loading branch information
julianknutsen committed Dec 5, 2019
1 parent b166009 commit 7b8d346
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,6 @@ public void onDisconnect(CloseConnectionReason closeConnectionReason, Connection

// Backdate all the eligible payloads based on the node that disconnected
map.values().stream()
.filter(protectedStorageEntry -> protectedStorageEntry.getProtectedStoragePayload() instanceof ExpirablePayload)
.filter(protectedStorageEntry -> protectedStorageEntry.getProtectedStoragePayload() instanceof RequiresOwnerIsOnlinePayload)
.filter(protectedStorageEntry -> ((RequiresOwnerIsOnlinePayload) protectedStorageEntry.getProtectedStoragePayload()).getOwnerNodeAddress().equals(peersNodeAddress))
.forEach(protectedStorageEntry -> {
Expand Down

0 comments on commit 7b8d346

Please sign in to comment.