fix(servers): 主人可放弃服务器、管理员可删除服务器,由 reaper 归档世界后释放或移除

This commit is contained in:
Lemon-miaow committed 2026-09-27 03:49:49 +08:00
1 parent 4a26bf4ca0
commit 0e08fa7ced
55 files changed
+2774 -119

No files matched your search

+5
View File
@@ -40,6 +40,11 @@ func (c *reclaimCluster) HoldWorld(ctx context.Context, _ string) (context.Conte
func (c *reclaimCluster) WorldExists(context.Context, string) (bool, error) { return true, nil }
// DeleteServer is only reached by a retirement, which these tests do not ask for.
func (c *reclaimCluster) DeleteServer(_ context.Context, name, _ string) error {
return errors.New("unexpected deletion of " + name)
}
type reclaimArchiver struct{ archived []string }
func (a *reclaimArchiver) Archive(_ context.Context, server, _ string) (backup.Archived, error) {