Complete refactor to new grpc control plane and only http proxy for carts #4

Merged
mats merged 75 commits from refactor/http-proxy into main 2025-10-14 22:31:28 +02:00
3 changed files with 4 additions and 4 deletions
Showing only changes of commit de62b0664d - Show all commits

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()

View File

@@ -117,9 +117,9 @@ func (h *RemoteHost) GetActorIds() []uint64 {
return reply.GetIds()
}
func (h *RemoteHost) AnnounceOwnership(uids []uint64) {
func (h *RemoteHost) AnnounceOwnership(ownerHost string, uids []uint64) {
_, err := h.controlClient.AnnounceOwnership(context.Background(), &messages.OwnershipAnnounce{
Host: h.host,
Host: ownerHost,
Ids: uids,
})
if err != nil {