1
0
mirror of git://jb55.com/damus synced 2024-09-16 02:03:45 +00:00

router: hash bytes for a quick sanity check

probably a no-op
This commit is contained in:
William Casarin 2023-09-10 18:21:55 -07:00
parent 5b901656f3
commit c13f29e98c

View File

@ -125,10 +125,10 @@ enum Route: Hashable {
switch self {
case .ProfileByKey(let pubkey):
hasher.combine("profilebykey")
hasher.combine(pubkey)
hasher.combine(pubkey.id.bytes)
case .Profile(let profile, _):
hasher.combine("profile")
hasher.combine(profile.pubkey)
hasher.combine(profile.pubkey.id.bytes)
case .Followers:
hasher.combine("followers")
case .Relay(let relay, _):