mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-14 16:32:06 +01:00
Small comments
This commit is contained in:
parent
9a8ec26737
commit
80a300b43e
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 {
|
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)) {
|
if (referenceTime.timestamp.after(timestamp)) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
// return equal
|
||||||
return abs(referenceTime.timestamp.time / 1000 - timestamp!!.time / 1000) == 0L // less than one second diff
|
return abs(referenceTime.timestamp.time / 1000 - timestamp!!.time / 1000) == 0L // less than one second diff
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in a new issue