mirror of
https://github.com/livekit/livekit.git
synced 2026-03-30 15:35:41 +00:00
init agent worker ping handler (#3061)
* init agent worker ping handler * cleanup
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user