Skip to content

Commit

Permalink
update modify ticker
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCherepovskyi committed Aug 24, 2023
1 parent e2fe9c2 commit 9357c85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/core/listener/listenr.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ func (l *ListenData) run(ctx context.Context) {
var previewHash common.Hash
var err error

tickerTime := time.Duration(l.pauseTime) * 40 * time.Second
ticker := time.NewTicker(tickerTime)
tickerTime := time.Duration(l.pauseTime) * time.Second
ticker := time.NewTicker(1 * time.Second)
for {
select {
case <-ctx.Done():
Expand Down

0 comments on commit 9357c85

Please sign in to comment.