Skip to content

Commit

Permalink
fixing op filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Paramadon committed Dec 5, 2024
1 parent ed0313d commit 7fb22ef
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions extension/agenthealth/handler/stats/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,7 @@ func NewOperationsFilter(operations ...string) OperationsFilter {

// NewStatusCodeOperationsFilter creates a new filter for allowed operations and status codes.
func NewStatusCodeOperationsFilter() OperationsFilter {
allowed := collections.NewSet[string](StatusCodeOperations...)

return OperationsFilter{
operations: allowed,
allowAll: allowed.Contains(AllowAllOperations),
}
return NewOperationsFilter(StatusCodeOperations...)
}

// GetShortOperationName maps long operation names to short ones.
Expand Down

0 comments on commit 7fb22ef

Please sign in to comment.