1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-14 16:32:06 +01:00

Small comments

This commit is contained in:
Paul Schaub 2023-07-05 18:16:05 +02:00
parent 9a8ec26737
commit 80a300b43e
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 2 additions and 1 deletions

View file

@ -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?
}
}

View file

@ -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