review fixes

This commit is contained in:
a10zn8
2024-02-27 17:42:12 +03:00
parent 6cc0e18692
commit 8d171e83e7
2 changed files with 4 additions and 5 deletions

View File

@@ -32,11 +32,10 @@ class DefaultNearMethods : CallMethods {
private val allowedMethods: Set<String> = all + add private val allowedMethods: Set<String> = all + add
override fun createQuorumFor(method: String): CallQuorum { override fun createQuorumFor(method: String): CallQuorum {
return when { if (add.contains(method)) {
add.contains(method) -> BroadcastQuorum() return BroadcastQuorum()
all.contains(method) -> AlwaysQuorum()
else -> AlwaysQuorum()
} }
return AlwaysQuorum()
} }
override fun isCallable(method: String): Boolean { override fun isCallable(method: String): Boolean {

View File

@@ -21,6 +21,6 @@ class NearLowerBoundBlockDetector(
} }
override fun periodRequest(): Long { override fun periodRequest(): Long {
return 120 return 3
} }
} }