Optimized Int.forEach

This commit is contained in:
nathan 2020-09-03 22:19:59 +02:00
parent f88fd10a0d
commit bae095c0fa

View File

@ -68,7 +68,7 @@ internal class RmiResponseManager(private val logger: KLogger, private val actio
ids.shuffle()
// populate the array of randomly assigned ID's + waiters.
ids.forEach {
for (it in ids) {
rmiWaiterCache.offer(RmiWaiter(it))
}
}