Skip to content

Commit

Permalink
chore: fix struct names in comment
Browse files Browse the repository at this point in the history
Signed-off-by: pinglanlu <[email protected]>
  • Loading branch information
pinglanlu committed Nov 11, 2024
1 parent ab7fa09 commit 17c4d41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/services/blockhashstore/feeder.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type Feeder struct {
lookbackBlocks int
latestBlock func(ctx context.Context) (uint64, error)

// heartbeatPeriodTime is a heartbeat period in seconds by which
// heartbeatPeriod is a heartbeat period in seconds by which
// the feeder will always store a blockhash, even if there are no
// unfulfilled requests. This is to ensure that there are blockhashes
// in the store to start from if we ever need to run backwards mode.
Expand Down
10 changes: 5 additions & 5 deletions core/services/job/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ type BlockhashStoreSpec struct {
// WaitBlocks defines the minimum age of blocks whose hashes should be stored.
WaitBlocks int32 `toml:"waitBlocks"`

// HeartbeatPeriodTime defines the number of seconds by which we "heartbeat store"
// HeartbeatPeriod defines the number of seconds by which we "heartbeat store"
// a blockhash into the blockhash store contract.
// This is so that we always have a blockhash to anchor to in the event we need to do a
// backwards mode on the contract.
Expand All @@ -650,7 +650,7 @@ type BlockhashStoreSpec struct {
// EVMChainID defines the chain ID for monitoring and storing of blockhashes.
EVMChainID *big.Big `toml:"evmChainID"`

// FromAddress is the sender address that should be used to store blockhashes.
// FromAddresses is the sender address that should be used to store blockhashes.
FromAddresses []evmtypes.EIP55Address `toml:"fromAddresses"`

// CreatedAt is the time this job was created.
Expand Down Expand Up @@ -699,7 +699,7 @@ type BlockHeaderFeederSpec struct {
// EVMChainID defines the chain ID for monitoring and storing of blockhashes.
EVMChainID *big.Big `toml:"evmChainID"`

// FromAddress is the sender address that should be used to store blockhashes.
// FromAddresses is the sender address that should be used to store blockhashes.
FromAddresses []evmtypes.EIP55Address `toml:"fromAddresses"`

// GetBlockHashesBatchSize is the RPC call batch size for retrieving blockhashes
Expand Down Expand Up @@ -730,7 +730,7 @@ type LegacyGasStationServerSpec struct {
// This selector is equivalent to (source) chainID specified in SendTransaction request
CCIPChainSelector *big.Big `toml:"ccipChainSelector"`

// FromAddress is the sender address that should be used to send meta-transactions
// FromAddresses is the sender address that should be used to send meta-transactions
FromAddresses []evmtypes.EIP55Address `toml:"fromAddresses"`

// CreatedAt is the time this job was created.
Expand Down Expand Up @@ -836,7 +836,7 @@ type EALSpec struct {
// EVMChainID defines the chain ID from which the meta-transaction request originates.
EVMChainID *big.Big `toml:"evmChainID"`

// FromAddress is the sender address that should be used to send meta-transactions
// FromAddresses is the sender address that should be used to send meta-transactions
FromAddresses []evmtypes.EIP55Address `toml:"fromAddresses"`

// LookbackBlocks defines the maximum age of blocks to lookback in status tracker
Expand Down

0 comments on commit 17c4d41

Please sign in to comment.