From 0dd7976ffbd26a5fe0dd6daead4943eb0bda7c5f Mon Sep 17 00:00:00 2001 From: Aloxaf Date: Fri, 8 Sep 2023 10:15:58 +0800 Subject: [PATCH] fix: sealing: typo in FinalizeReplicaUpdate --- storage/sealer/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/sealer/manager.go b/storage/sealer/manager.go index 700a5aec59d..41b3a1b397a 100644 --- a/storage/sealer/manager.go +++ b/storage/sealer/manager.go @@ -802,7 +802,7 @@ func (m *Manager) FinalizeReplicaUpdate(ctx context.Context, sector storiface.Se { unsealedStores, ferr := m.index.StorageFindSector(ctx, sector.ID, storiface.FTUnsealed, 0, false) - if err != nil { + if ferr != nil { err = multierr.Append(err, xerrors.Errorf("find unsealed sector before move: %w", ferr)) } else if len(unsealedStores) > 0 { // if we found unsealed files, AND have been asked to keep at least one piece, move unsealed