sealing: Address snap cleanup review

This commit is contained in:
Łukasz Magiera 2022-11-23 18:46:37 +01:00
parent dc6c2b68fe
commit d6f73c1a81
2 changed files with 3 additions and 3 deletions

View File

@ -97,8 +97,8 @@ func NewClusterRaftConfig(userRaftConfig *config.UserRaftConfig) *ClusterRaftCon
}
// // Validate checks that this configuration has working values,
// // at least in appearance.
// Validate checks that this configuration has working values,
// at least in appearance.
func ValidateConfig(cfg *ClusterRaftConfig) error {
if cfg.RaftConfig == nil {
return xerrors.Errorf("no hashicorp/raft.Config")

View File

@ -615,7 +615,7 @@ func (m *Manager) SealCommit2(ctx context.Context, sector storiface.SectorRef, p
// sectorStorageType tries to figure out storage type for a given sector; expects only a single copy of the file in the
// storage system
func (m *Manager) sectorStorageType(ctx context.Context, sector storiface.SectorRef, ft storiface.SectorFileType) (bool, storiface.PathType, error) {
func (m *Manager) sectorStorageType(ctx context.Context, sector storiface.SectorRef, ft storiface.SectorFileType) (sectorFound bool, ptype storiface.PathType, err error) {
stores, err := m.index.StorageFindSector(ctx, sector.ID, ft, 0, false)
if err != nil {
return false, "", xerrors.Errorf("finding sector: %w", err)