1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-07-01 07:46:43 +02:00

Small comments

This commit is contained in:
Paul Schaub 2023-07-05 18:16:05 +02:00
parent 570bb1a512
commit 6f4b7f9344
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 { 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)) { 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