Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
add stat period
Browse files Browse the repository at this point in the history
  • Loading branch information
po-bera committed Jan 19, 2024
1 parent 358236e commit 2304d4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cosmos/runtime/txpool/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const (
txChanSize = 4096
maxRetries = 5
retryDelay = 50 * time.Millisecond
statPeriod = 60 * time.Second
)

// SdkTx is used to generate mocks.
Expand Down Expand Up @@ -181,7 +182,7 @@ func (h *handler) failedLoop() {
}

func (h *handler) statLoop() {
ticker := time.NewTicker(5 * time.Second)
ticker := time.NewTicker(statPeriod)
defer ticker.Stop()
for {
select {
Expand Down

0 comments on commit 2304d4c

Please sign in to comment.