fix(servers): 主人可放弃服务器、管理员可删除服务器,由 reaper 归档世界后释放或移除
This commit is contained in:
55 files changed
+2774
-119
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user