review fixes
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -21,6 +21,6 @@ class NearLowerBoundBlockDetector(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun periodRequest(): Long {
|
override fun periodRequest(): Long {
|
||||||
return 120
|
return 3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user