[#901] util: implement Release for PseudWorkerPool

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-10-12 14:55:49 +03:00 committed by Alex Vanin
parent 616013cb8a
commit 0beaed2ef4
3 changed files with 87 additions and 5 deletions

View file

@ -60,8 +60,8 @@ type cfg struct {
func defaultCfg() *cfg {
return &cfg{
remotePool: new(util.PseudoWorkerPool),
localPool: new(util.PseudoWorkerPool),
remotePool: util.NewPseudoWorkerPool(),
localPool: util.NewPseudoWorkerPool(),
log: zap.L(),
}
}