leader discovery fix and code cleaning

This commit is contained in:
Pierre
2026-02-01 13:39:36 +01:00
parent 2c85b409b9
commit 9b4a802ff3
8 changed files with 928 additions and 415 deletions
+5 -4
View File
@@ -303,9 +303,11 @@ export class APIServer {
const info = this.kvManager.getLeaderInfo();
if (info) {
leaderInfo = {
host: info.host,
api: info.api,
http: info.http,
hostname: info.hostname,
baseUrl: info.baseUrl,
apiUrl: info.apiUrl,
redisUrl: info.redisUrl,
webdavUrl: info.webdavUrl,
};
}
}
@@ -314,7 +316,6 @@ export class APIServer {
services,
current: 'meta-fuse',
leader: leaderInfo,
isLeader: false, // meta-fuse is never the leader
});
}