init agent worker ping handler (#3061)

* init agent worker ping handler

* cleanup
This commit is contained in:
Paul Wells
2024-10-03 04:08:07 -07:00
committed by GitHub
parent 8ac33a868c
commit bdfb2c4ca9

View File

@@ -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,