[#2159] node: Add tree replication timeout configuration

Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
Pavel Karpy 2022-12-14 19:28:44 +03:00 committed by Anton Nikiforov
parent edb1428248
commit 306609030a
10 changed files with 36 additions and 3 deletions

View file

@ -49,7 +49,7 @@ func (s *Service) replicationWorker() {
return false
}
ctx, cancel := context.WithTimeout(context.Background(), defaultReplicatorSendTimeout)
ctx, cancel := context.WithTimeout(context.Background(), s.replicatorTimeout)
_, lastErr = c.Apply(ctx, task.req)
cancel()