Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
Signed-off-by: sjtucoder <[email protected].>
  • Loading branch information
sjtucoder committed Feb 7, 2025
1 parent 5766de7 commit 7c681ab
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion fixtures/fortest/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var TestAddresses []address.Address
// testKeys is a list of filenames, which contain the private keys of the pregenerated addresses.
var testKeys []string

// TestMiners is a list of pregenerated miner acccounts. They are owned by the matching TestAddress.
// TestMiners is a list of pregenerated miner accounts. They are owned by the matching TestAddress.
var TestMiners []address.Address

// TestGenGenConfig is the gengen config used to make the default test genesis block.
Expand Down
4 changes: 2 additions & 2 deletions pkg/events/filter/sqlite/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ func Open(path string) (*sql.DB, bool, error) {

// InitDb initializes the database by checking whether it needs to be created or upgraded.
// The ddls are the DDL statements to create the tables in the database and their initial required
// content. The schemaVersion will be set inside the databse if it is newly created. Otherwise, the
// version is read from the databse and returned. This value should be checked against the expected
// content. The schemaVersion will be set inside the database if it is newly created. Otherwise, the
// version is read from the database and returned. This value should be checked against the expected
// version to determine if the database needs to be upgraded.
// It is up to the caller to close the database if an error is returned by this function.
func InitDb(
Expand Down
2 changes: 1 addition & 1 deletion pkg/fork/fork.go
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,7 @@ func copyRec(ctx context.Context, from, to blockstore.Blockstore, root cid.Cid,
var lerr error
err = linksForObj(blk, func(link cid.Cid) {
if lerr != nil {
// Theres no erorr return on linksForObj callback :(
// Theres no error return on linksForObj callback :(
return
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/net/gossipsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func parseDrandBootstrap(df config.DrandConf) ([]peer.AddrInfo, error) {
// TODO: retry resolving, don't fail if at least one resolve succeeds
addrs, err := ParseAddresses(context.TODO(), df.Relays)
if err != nil {
gossipsubLog.Errorf("reoslving drand relays addresses: %+v", err)
gossipsubLog.Errorf("resolving drand relays addresses: %+v", err)
return nil, nil
}

Expand Down
2 changes: 1 addition & 1 deletion venus-shared/blockstore/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func copyRec(ctx context.Context, from, to Blockstore, root cid.Cid, cp func(blo
var lerr error
err = linksForObj(blk, func(link cid.Cid) {
if lerr != nil {
// Theres no erorr return on linksForObj callback :(
// Theres no error return on linksForObj callback :(
return
}

Expand Down

0 comments on commit 7c681ab

Please sign in to comment.