diff options
author | Valery Piashchynski <[email protected]> | 2021-06-25 22:07:52 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-25 22:07:52 +0300 |
commit | ae58af3ca1d37cb61f106146e4bf9bd1d033e8b3 (patch) | |
tree | 8d14a41607080298e1f0441a9ad620aee17da39e /pkg/pool/static_pool.go | |
parent | e9249c7896331bab97a18a7ee0db17803fdd31fb (diff) |
- Fix bug with an exec_ttl reallocation issue
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg/pool/static_pool.go')
-rwxr-xr-x | pkg/pool/static_pool.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/pool/static_pool.go b/pkg/pool/static_pool.go index ab025fa1..e568661f 100755 --- a/pkg/pool/static_pool.go +++ b/pkg/pool/static_pool.go @@ -174,7 +174,7 @@ func (sp *StaticPool) execWithTTL(ctx context.Context, p payload.Payload) (paylo return sp.execDebugWithTTL(ctx, p) } - ctxAlloc, cancel := context.WithTimeout(ctx, sp.cfg.AllocateTimeout) + ctxAlloc, cancel := context.WithTimeout(context.Background(), sp.cfg.AllocateTimeout) defer cancel() w, err := sp.getWorker(ctxAlloc, op) if err != nil { |