init agent worker ping handler (#3061)
* init agent worker ping handler * cleanup
This commit is contained in:
+1
-2
@@ -226,7 +226,6 @@ type Worker struct {
|
|||||||
|
|
||||||
apiKey string
|
apiKey string
|
||||||
apiSecret string
|
apiSecret string
|
||||||
conn SignalConn
|
|
||||||
logger logger.Logger
|
logger logger.Logger
|
||||||
|
|
||||||
ctx context.Context
|
ctx context.Context
|
||||||
@@ -251,10 +250,10 @@ func NewWorker(
|
|||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
|
|
||||||
return &Worker{
|
return &Worker{
|
||||||
|
WorkerPingHandler: WorkerPingHandler{conn: conn},
|
||||||
WorkerRegistration: registration,
|
WorkerRegistration: registration,
|
||||||
apiKey: apiKey,
|
apiKey: apiKey,
|
||||||
apiSecret: apiSecret,
|
apiSecret: apiSecret,
|
||||||
conn: conn,
|
|
||||||
logger: logger.WithValues(
|
logger: logger.WithValues(
|
||||||
"workerID", registration.ID,
|
"workerID", registration.ID,
|
||||||
"agentName", registration.AgentName,
|
"agentName", registration.AgentName,
|
||||||
|
|||||||
Reference in New Issue
Block a user