Skip to content

Commit

Permalink
after we use time.Ticker it didn't allow to have 0 time duration (#493)
Browse files Browse the repository at this point in the history
* after we use time.Ticker it didn't allow to have 0 time duration
  • Loading branch information
liam-lai authored Mar 15, 2024
1 parent 4938ba7 commit bbab326
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eth/bloombits.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
package eth

import (
"github.com/XinFinOrg/XDPoSChain/core/rawdb"
"time"

"github.com/XinFinOrg/XDPoSChain/common"
"github.com/XinFinOrg/XDPoSChain/common/bitutil"
"github.com/XinFinOrg/XDPoSChain/core"
"github.com/XinFinOrg/XDPoSChain/core/bloombits"
"github.com/XinFinOrg/XDPoSChain/core/rawdb"
"github.com/XinFinOrg/XDPoSChain/core/types"
"github.com/XinFinOrg/XDPoSChain/ethdb"
"github.com/XinFinOrg/XDPoSChain/params"
Expand All @@ -44,7 +44,7 @@ const (

// bloomRetrievalWait is the maximum time to wait for enough bloom bit requests
// to accumulate request an entire batch (avoiding hysteresis).
bloomRetrievalWait = time.Duration(0)
bloomRetrievalWait = time.Microsecond * 100
)

// startBloomHandlers starts a batch of goroutines to accept bloom bit database
Expand Down

0 comments on commit bbab326

Please sign in to comment.