Skip to content

Commit

Permalink
chore: fix some comments (#1935)
Browse files Browse the repository at this point in the history
Signed-off-by: haouvw <jchaodaohang@foxmail.com>
  • Loading branch information
haouvw authored Jun 26, 2024
1 parent a0938e3 commit 5dcdc1c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
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

0 comments on commit 5dcdc1c

Please sign in to comment.