mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-24 11:57:59 +01:00
Small comments
This commit is contained in:
parent
570bb1a512
commit
6f4b7f9344
2 changed files with 2 additions and 1 deletions
|
@ -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