Skip to content

Commit

Permalink
chore: fix some typos in comment
Browse files Browse the repository at this point in the history
Signed-off-by: pinglanlu <[email protected]>
  • Loading branch information
pinglanlu committed Jan 16, 2025
1 parent 45f82e7 commit db4c024
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/ethereum/go-ethereum/metrics"
)

// Read system enviroment variables prefixed with "INFURA".
// Read system environment variables prefixed with "INFURA".
// eg., `INFURA_LOG_LEVEL` will override "log.level" config item from the config file.
const viperEnvPrefix = "infura"

Expand Down
2 changes: 1 addition & 1 deletion rpc/ethbridge/convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
ethNetworkId *uint64
)

// Please set the following enviroment before start:
// Please set the following environment before start:
// `TEST_ETH_CLIENT_ENDPOINT`: EVM space JSON-RPC endpoint to construct sdk client.

func TestMain(m *testing.M) {
Expand Down
4 changes: 2 additions & 2 deletions test/pubsub_validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (
calibrationExpired

pubsubValidationChBufferSize = 200 // default size of pubsub validation channel buffer
ringBufferSize = 200 // size of ring buffer to hold data for comparision
ringBufferSize = 200 // size of ring buffer to hold data for comparison
minCommonSubArraySize = 5 // required minimum size of common subarray for calibration
maxCalibrationTries = 500 // max calibration tries in case of endless loop
)
Expand Down Expand Up @@ -537,7 +537,7 @@ type pubsubValidationContext struct {
etype reflect.Type // channel type
channel reflect.Value // channel to receive result(s)
errCh chan error // channel to notify pubsub error
rBuf *ring.Ring // ring buffer to hold data for comparision
rBuf *ring.Ring // ring buffer to hold data for comparison
}

func newPubSubValidationContext(channel interface{}) *pubsubValidationContext {
Expand Down
2 changes: 1 addition & 1 deletion test/vfilter_validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ type vfValidationContext struct {
etype reflect.Type // channel type
channel reflect.Value // channel to receive result(s)
errCh chan error // channel to notify validation error
rBuf *ring.Ring // ring buffer to hold data for comparision
rBuf *ring.Ring // ring buffer to hold data for comparison
}

func newVFValidationContext(channel interface{}) *vfValidationContext {
Expand Down
2 changes: 1 addition & 1 deletion util/acl/allowlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type AllowList struct {
// Any requests which query addresses that are not in the allowlist are rejected.
ContractAddresses []string

// The allowed methods list. If the list is empty, all methods will be accpeted.
// The allowed methods list. If the list is empty, all methods will be accepted.
AllowMethods []string

// The disallowed methods list. If the list is empty, no methods will be rejected.
Expand Down

0 comments on commit db4c024

Please sign in to comment.