Skip to content
Snippets Groups Projects
Commit 33780f10 authored by Koen's avatar Koen
Browse files

Cleanup.

parent 8b20b490
No related branches found
Tags 206
No related merge requests found
...@@ -259,10 +259,11 @@ class StateSubscriptions { ...@@ -259,10 +259,11 @@ class StateSubscriptions {
val subUrls = getSubscriptions().parallelStream().map { val subUrls = getSubscriptions().parallelStream().map {
if(usePolycentric) { if(usePolycentric) {
val result = StatePolycentric.instance.getChannelUrlsWithUpdateResult(it.channel.url, it.channel.id, polycentricBudget <= 0); val result = StatePolycentric.instance.getChannelUrlsWithUpdateResult(it.channel.url, it.channel.id, polycentricBudget <= 0);
if(result.first) if(result.first) {
synchronized(lock) { synchronized(lock) {
polycentricBudget--; polycentricBudget--;
} }
}
Pair(it, result.second); Pair(it, result.second);
} }
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment