satellite/metainfo/piecedeletion: enable connection pool

We want to enable connection pool for piece deletion to avoid
doing multiple SSL hanshakes to SN while massive deletion process.

Change-Id: Ic917e4eda304ee16a286926ef046fe9e38bf38ca
This commit is contained in:
Michał Niewrzał 2021-10-05 08:45:08 +02:00 committed by Ivan Fraixedes
parent bb55c30594
commit f93dc5a166

View File

@ -109,6 +109,8 @@ func NewService(log *zap.Logger, dialer rpc.Dialer, nodesDB Nodes, config Config
dialerClone.DialTimeout = config.DialTimeout
}
dialerClone.Pool = rpc.NewDefaultConnectionPool()
return &Service{
log: log,
config: config,