Skip to content

Commit

Permalink
chore: fix some typos in comments (#2150)
Browse files Browse the repository at this point in the history
Signed-off-by: gopherorg <[email protected]>
Co-authored-by: Christian Gorenflo <[email protected]>
  • Loading branch information
gopherorg and cgorenflo authored Jul 30, 2024
1 parent 0ececf3 commit f8d8372
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vald/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type ValdConfig struct {
EventNotificationsMaxRetries int `mapstructure:"event_notifications_max_retries"`
EventNotificationsBackOff time.Duration `mapstructure:"event_notifications_back_off"`
MaxLatestBlockAge time.Duration `mapstructure:"max_latest_block_age"` // If a block is older than this, vald does not consider it to be the latest block. This is supposed to be sufficiently larger than the block production time.
NoNewBlockPanicTimeout time.Duration `mapstructure:"no_new_blocks_timeout"` // At times vald stalls completely. Until the bug is found it is better to panic and allow users to restart the process instead of doing nothing. Once at least one block has been seen vald will panic if it does not see another before the timout expires.
NoNewBlockPanicTimeout time.Duration `mapstructure:"no_new_blocks_timeout"` // At times vald stalls completely. Until the bug is found it is better to panic and allow users to restart the process instead of doing nothing. Once at least one block has been seen vald will panic if it does not see another before the timeout expires.

EVMConfig []evm.EVMConfig `mapstructure:"axelar_bridge_evm"`
}
Expand Down
2 changes: 1 addition & 1 deletion vald/evm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (mgr Mgr) logger(keyvals ...any) log.Logger {
return log.WithKeyVals(keyvals...)
}

// ProcessNewChain notifies the operator that vald needs to be restarted/udpated for a new chain
// ProcessNewChain notifies the operator that vald needs to be restarted/updated for a new chain
func (mgr Mgr) ProcessNewChain(event *types.ChainAdded) (err error) {
mgr.logger().Info(fmt.Sprintf("VALD needs to be updated and restarted for new chain %s", event.Chain.String()))
return nil
Expand Down
2 changes: 1 addition & 1 deletion vald/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,5 +509,5 @@ func NewRWFile(path string) RWFile {
// ReadAll returns the full content of the file
func (f RWFile) ReadAll() ([]byte, error) { return os.ReadFile(f.path) }

// WriteAll writes the given bytes to a file. Creates a new fille if it does not exist, overwrites the previous content otherwise.
// WriteAll writes the given bytes to a file. Creates a new file if it does not exist, overwrites the previous content otherwise.
func (f RWFile) WriteAll(bz []byte) error { return os.WriteFile(f.path, bz, RW) }

0 comments on commit f8d8372

Please sign in to comment.