fix xsync counter initialization.
This commit is contained in:
2
pool.go
2
pool.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user