sealer: Fix no-remote move selector

This commit is contained in:
Łukasz Magiera 2022-07-11 21:47:47 +02:00
parent 6ac5c16d2b
commit cd682e200b

View File

@ -96,7 +96,7 @@ func (s *moveSelector) Ok(ctx context.Context, task sealtasks.TaskType, spt abi.
} }
} }
return ok && s.allowRemote, pref, nil return (ok && s.allowRemote) || pref, pref, nil
} }
func (s *moveSelector) Cmp(ctx context.Context, task sealtasks.TaskType, a, b *WorkerHandle) (bool, error) { func (s *moveSelector) Cmp(ctx context.Context, task sealtasks.TaskType, a, b *WorkerHandle) (bool, error) {