mirror of
git://jb55.com/damus
synced 2024-09-18 19:23:49 +00:00
router: hash bytes for a quick sanity check
probably a no-op
This commit is contained in:
parent
5b901656f3
commit
c13f29e98c
@ -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, _):
|
||||
|
Loading…
Reference in New Issue
Block a user