From 3cb68919e0a6e9402f4eb274df6ca26ac820d7e7 Mon Sep 17 00:00:00 2001 From: NikitaSkrynnik Date: Mon, 23 Sep 2024 22:09:26 +0700 Subject: [PATCH] revert some suspicious changes Signed-off-by: NikitaSkrynnik --- pkg/networkservice/common/heal/eventloop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/networkservice/common/heal/eventloop.go b/pkg/networkservice/common/heal/eventloop.go index e8de30980..df77dd4c0 100644 --- a/pkg/networkservice/common/heal/eventloop.go +++ b/pkg/networkservice/common/heal/eventloop.go @@ -209,7 +209,7 @@ func (cev *eventLoop) monitorDataPlane() <-chan struct{} { for { select { case <-ticker.C: - deadlineCtx, deadlineCancel := context.WithDeadline(cev.eventLoopCtx, time.Now().Add(cev.heal.livenessCheckTimeout)) + deadlineCtx, deadlineCancel := context.WithDeadline(cev.chainCtx, time.Now().Add(cev.heal.livenessCheckTimeout)) alive := cev.heal.livenessCheck(deadlineCtx, cev.conn) deadlineCancel() if !alive {