Logging fix: size() was called on wrong collection, leading to confusing logging output

This commit is contained in:
catbref 2022-05-14 17:44:29 +01:00
parent ae92a6eed4
commit c032b92d0d

View File

@ -652,7 +652,7 @@ public class OnlineAccountsManager {
.filter(account -> outgoingLeadingBytes.contains(account.getPublicKey()[0]))
.forEach(outgoingOnlineAccounts::add);
if (outgoingLeadingBytes.size() > beforeAddSize)
if (outgoingOnlineAccounts.size() > beforeAddSize)
LOGGER.debug(String.format("Going to send %d online accounts for timestamp %d and leading bytes %s",
outgoingOnlineAccounts.size() - beforeAddSize,
timestamp,