Skip to content

Commit

Permalink
fix: update based on feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Jul 2, 2024
1 parent 38233bf commit dd777dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions node/pkg/chain/websocketchainreader/websocketreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ import (
)

func New(opts ...ChainReaderOption) (*ChainReader, error) {
config := &ChainReaderConfig{}
config := &ChainReaderConfig{
RetryInterval: 1 * time.Second,
}
for _, opt := range opts {
opt(config)
}
Expand Down Expand Up @@ -64,7 +66,7 @@ func New(opts ...ChainReaderOption) (*ChainReader, error) {
return &ChainReader{
EthClient: ethClient,
KaiaClient: kaiaClient,
RetryPeriod: 1 * time.Second,
RetryPeriod: config.RetryInterval,
ChainIdToChainType: chainIdToChainType,
}, nil
}
Expand Down
2 changes: 1 addition & 1 deletion node/pkg/dal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func CustomErrorHandler(c *fiber.Ctx, err error) error {
// | ${status} | ${ip} | ${method} | ${path} | ${error}",

log.
Info().
Error().
Err(err).
Int("status", code).
Str("ip", c.IP()).
Expand Down

0 comments on commit dd777dc

Please sign in to comment.