mirror of
https://github.com/grassrootseconomics/eth-tracker.git
synced 2025-11-14 14:36:16 +01:00
16 lines
195 B
Go
16 lines
195 B
Go
package pool
|
|
|
|
import (
|
|
"github.com/gammazero/workerpool"
|
|
)
|
|
|
|
type (
|
|
PoolOpts struct {
|
|
PoolSize int
|
|
}
|
|
)
|
|
|
|
func NewPool(o PoolOpts) *workerpool.WorkerPool {
|
|
return workerpool.New(o.PoolSize)
|
|
}
|