Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Feb 6, 2025
1 parent 00f53a9 commit 74a940e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/skippeers/skippeers.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ type List struct {
wg sync.WaitGroup
}

func NewList(wakupDuration time.Duration) *List {
func NewList(workerWakeUpDur time.Duration) *List {
l := &List{
skip: make(map[string]map[string]int64),
durC: make(chan time.Duration),
quit: make(chan struct{}),
}

if wakupDuration > 0 {
if workerWakeUpDur > 0 {
l.wg.Add(1)
go l.worker(wakupDuration)
go l.worker(workerWakeUpDur)
}

return l
Expand Down

0 comments on commit 74a940e

Please sign in to comment.