From bdfb2c4ca957de6b043c9ef588a7a823ae67f7d2 Mon Sep 17 00:00:00 2001 From: Paul Wells Date: Thu, 3 Oct 2024 04:08:07 -0700 Subject: [PATCH] init agent worker ping handler (#3061) * init agent worker ping handler * cleanup --- pkg/agent/worker.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/agent/worker.go b/pkg/agent/worker.go index 5803b4918..4e80f00e0 100644 --- a/pkg/agent/worker.go +++ b/pkg/agent/worker.go @@ -226,7 +226,6 @@ type Worker struct { apiKey string apiSecret string - conn SignalConn logger logger.Logger ctx context.Context @@ -251,10 +250,10 @@ func NewWorker( ctx, cancel := context.WithCancel(context.Background()) return &Worker{ + WorkerPingHandler: WorkerPingHandler{conn: conn}, WorkerRegistration: registration, apiKey: apiKey, apiSecret: apiSecret, - conn: conn, logger: logger.WithValues( "workerID", registration.ID, "agentName", registration.AgentName,