Skip to content

Commit

Permalink
remove duplicate ACL check in tabletserver handleHTTPConsolidations
Browse files Browse the repository at this point in the history
Signed-off-by: austenLacy <[email protected]>
  • Loading branch information
austenLacy committed Aug 29, 2023
1 parent a41ed48 commit cca647b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions go/vt/vttablet/tabletserver/query_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,10 +621,6 @@ func (qe *QueryEngine) handleHTTPAclJSON(response http.ResponseWriter, request *

// ServeHTTP lists the most recent, cached queries and their count.
func (qe *QueryEngine) handleHTTPConsolidations(response http.ResponseWriter, request *http.Request) {
if err := acl.CheckAccessHTTP(request, acl.DEBUGGING); err != nil {
acl.SendError(response, err)
return
}
if err := acl.CheckAccessHTTP(request, acl.DEBUGGING); err != nil {
acl.SendError(response, err)
return
Expand Down

0 comments on commit cca647b

Please sign in to comment.