mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-09-28 18:49:56 +02:00
Small comments
This commit is contained in:
parent
570bb1a512
commit
6f4b7f9344
|
@ -99,6 +99,6 @@ class Depth private constructor(val limit: Int?) : Comparable<Depth> {
|
|||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return limit ?: 0
|
||||
return limit ?: 0 // TODO: 255?
|
||||
}
|
||||
}
|
|
@ -56,6 +56,7 @@ class RevocationState private constructor(val type: Type, val timestamp: Date?)
|
|||
if (referenceTime.timestamp.after(timestamp)) {
|
||||
return true
|
||||
}
|
||||
// return equal
|
||||
return abs(referenceTime.timestamp.time / 1000 - timestamp!!.time / 1000) == 0L // less than one second diff
|
||||
}
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue