Skip to content

Commit

Permalink
fix xsync counter initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Sep 16, 2023
1 parent e55f549 commit 18cee74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (pool *SimplePool) SubMany(ctx context.Context, urls []string, filters Filt
uniqueEvents := make(chan *Event)
seenAlready := xsync.NewMapOf[bool]()

pending := xsync.Counter{}
pending := xsync.NewCounter()
initial := len(urls)
pending.Add(int64(initial))
for _, url := range urls {
Expand Down

0 comments on commit 18cee74

Please sign in to comment.