fix ownership
All checks were successful
Build and Publish / Metadata (push) Successful in 10s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 1m11s
Build and Publish / BuildAndDeployArm64 (push) Successful in 4m20s

This commit is contained in:
matst80
2025-10-14 13:33:08 +02:00
parent 0b9c14c231
commit de62b0664d
3 changed files with 4 additions and 4 deletions

View File

@@ -37,5 +37,5 @@ type Host interface {
Close() error
Ping() bool
IsHealthy() bool
AnnounceOwnership(ids []uint64)
AnnounceOwnership(ownerHost string, ids []uint64)
}

View File

@@ -342,7 +342,7 @@ func (p *SimpleGrainPool[V]) broadcastOwnership(ids []uint64) {
}
p.forAllHosts(func(rh Host) {
rh.AnnounceOwnership(ids)
rh.AnnounceOwnership(p.hostname, ids)
})
log.Printf("taking ownership of %d ids", len(ids))
// go p.statsUpdate()