Skip to content

Commit 5dcdc1c

Browse files
authored
chore: fix some comments (#1935)
Signed-off-by: haouvw <[email protected]>
1 parent a0938e3 commit 5dcdc1c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

extern/boostd-data/yugabyte/piecedoctor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (s *Store) NextPiecesToCheck(ctx context.Context, maddr address.Address) ([
102102
for iter.Scan(&maddrStr) {
103103
pmaddr, err := address.NewFromString(maddrStr)
104104
if err != nil {
105-
return fmt.Errorf("getting miners for pieces: parsing miner adddress '%s': %w", maddrStr, err)
105+
return fmt.Errorf("getting miners for pieces: parsing miner address '%s': %w", maddrStr, err)
106106
}
107107

108108
newPieceWithMaddrLk.Lock()

indexprovider/wrapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ func (w *Wrapper) MultihashLister(ctx context.Context, prov peer.ID, contextID [
690690
// Deal was not found in boost DB - check in legacy markets
691691
md, legacyErr := w.legacyProv.ByPropCid(proposalCid)
692692
if legacyErr == nil {
693-
// Found the deal, get an interator over the piece
693+
// Found the deal, get an iterator over the piece
694694
return provideF(proposalCid.String(), false, md.Proposal.PieceCID)
695695
}
696696

lib/keystore/keystore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (fsr *DiskKeyStore) List() ([]string, error) {
5858
return keys, nil
5959
}
6060

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

6464
encName := base32.RawStdEncoding.EncodeToString([]byte(name))

sectorstatemgr/sectorstatemgr.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ func (m *SectorStateMgr) refreshState(ctx context.Context) (*SectorStateUpdates,
191191
}
192192
}
193193

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

0 commit comments

Comments
 (0)