Skip to content

Commit

Permalink
Add read/write lock in the fault injection handler
Browse files Browse the repository at this point in the history
  • Loading branch information
xxx0624 committed Aug 27, 2024
1 parent fec74a8 commit af3afb4
Show file tree
Hide file tree
Showing 4 changed files with 398 additions and 103 deletions.
5 changes: 1 addition & 4 deletions agent/handlers/task_server_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,7 @@ func registerFaultHandlers(
agentState *v4.TMDSAgentState,
metricsFactory metrics.EntryFactory,
) {
handler := fault.FaultHandler{
AgentState: agentState,
MetricsFactory: metricsFactory,
}
handler := fault.New(agentState, metricsFactory)

if muxRouter == nil {
return
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit af3afb4

Please sign in to comment.