LimitsState take comparison operator

This commit is contained in:
InsanusMokrassar 2022-12-22 13:55:07 +06:00
parent 7727d2400e
commit 5f8e410531

View File

@ -8,4 +8,6 @@ data class LimitsState(
val maxLongQuota: Int, val maxLongQuota: Int,
val knownShortQuota: Int, val knownShortQuota: Int,
val knownLongQuota: Int val knownLongQuota: Int
) ) : Comparable<LimitsState> {
override fun compareTo(other: LimitsState): Int = knownShortQuota.compareTo(other.knownShortQuota)
}