Skip to content

Commit

Permalink
Registering fault handlers on TMDS server start up
Browse files Browse the repository at this point in the history
  • Loading branch information
mye956 committed Oct 3, 2024
1 parent cde7709 commit 492f265
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions agent/handlers/task_server_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ func taskServerSetup(
agentAPIV1HandlersSetup(muxRouter, state, credentialsManager, cluster, tmdsAgentState,
taskProtectionClientFactory, metricsFactory)

// TODO: Future PR to pass in TMDS server router once all of the handlers have been implemented.
execWrapper := execwrapper.NewExec()
registerFaultHandlers(nil, tmdsAgentState, metricsFactory, execWrapper)
registerFaultHandlers(muxRouter, tmdsAgentState, metricsFactory, execWrapper)

return tmds.NewServer(auditLogger,
tmds.WithHandler(muxRouter),
Expand Down

0 comments on commit 492f265

Please sign in to comment.