Add network map hash to avoid unnecessary updates

This commit is contained in:
bcmmbaga
2024-06-26 16:29:10 +03:00
parent 628673db20
commit 7a0dc10ccc
6 changed files with 44 additions and 6 deletions

View File

@@ -47,6 +47,8 @@ type Peer struct {
Ephemeral bool
// Geo location based on connection IP
Location Location `gorm:"embedded;embeddedPrefix:location_"`
NetworkMapHash uint64 `hash:"ignore"`
}
type PeerStatus struct { //nolint:revive