Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore: fix some comments #1935

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extern/boostd-data/yugabyte/piecedoctor.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (s *Store) NextPiecesToCheck(ctx context.Context, maddr address.Address) ([
for iter.Scan(&maddrStr) {
pmaddr, err := address.NewFromString(maddrStr)
if err != nil {
return fmt.Errorf("getting miners for pieces: parsing miner adddress '%s': %w", maddrStr, err)
return fmt.Errorf("getting miners for pieces: parsing miner address '%s': %w", maddrStr, err)
}

newPieceWithMaddrLk.Lock()
Expand Down
2 changes: 1 addition & 1 deletion indexprovider/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ func (w *Wrapper) MultihashLister(ctx context.Context, prov peer.ID, contextID [
// Deal was not found in boost DB - check in legacy markets
md, legacyErr := w.legacyProv.ByPropCid(proposalCid)
if legacyErr == nil {
// Found the deal, get an interator over the piece
// Found the deal, get an iterator over the piece
return provideF(proposalCid.String(), false, md.Proposal.PieceCID)
}

Expand Down
2 changes: 1 addition & 1 deletion lib/keystore/keystore.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (fsr *DiskKeyStore) List() ([]string, error) {
return keys, nil
}

// Get gets a key out of keystore and returns types.KeyInfo coresponding to named key
// Get gets a key out of keystore and returns types.KeyInfo corresponding to named key
func (fsr *DiskKeyStore) Get(name string) (types.KeyInfo, error) {

encName := base32.RawStdEncoding.EncodeToString([]byte(name))
Expand Down
4 changes: 2 additions & 2 deletions sectorstatemgr/sectorstatemgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ func (m *SectorStateMgr) refreshState(ctx context.Context) (*SectorStateUpdates,
}
}

// If the state hasnt been set it should be in the cache, mark it so we dont remove
// This may get overriden by the sealed status if it comes after in the list, which is fine
// If the state hasn't been set it should be in the cache, mark it so we dont remove
// This may get overridden by the sealed status if it comes after in the list, which is fine
if _, ok := sectorStates[sectorDecl.SectorID]; !ok {
sectorStates[sectorDecl.SectorID] = db.SealStateCache
}
Expand Down
Loading