From 0e5a5b468c9a0a99a11e44c19574988ca2475803 Mon Sep 17 00:00:00 2001 From: clawbot <35+clawbot@noreply.example.org> Date: Tue, 17 Nov 2026 04:47:28 +0000 Subject: [PATCH] waf: rename afterLookUp, which differed from afterLookup by one capital The method that runs the heuristics of afterLookup was named afterLookUp, beside the list afterLookup() in the same package. It is now runAfterLookup, like runBesideLookup. Model: opus-5-5 --- internal/waf/besidelookup.go | 2 +- internal/waf/request.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/waf/besidelookup.go b/internal/waf/besidelookup.go index 377d724..23ab30a 100644 --- a/internal/waf/besidelookup.go +++ b/internal/waf/besidelookup.go @@ -70,7 +70,7 @@ func (rq *request) runBesideLookup( case result := <-lookedUp: lookedUp = nil - v := rq.afterLookUp(ctx, result) + v := rq.runAfterLookup(ctx, result) if v != nil { return v } diff --git a/internal/waf/request.go b/internal/waf/request.go index 71a8ee2..06bec96 100644 --- a/internal/waf/request.go +++ b/internal/waf/request.go @@ -242,7 +242,7 @@ func (rq *request) checkClient(ctx context.Context) *verdict { select { case result := <-lookedUp: - v := rq.afterLookUp(ctx, result) + v := rq.runAfterLookup(ctx, result) if v != nil { return v } @@ -253,10 +253,10 @@ func (rq *request) checkClient(ctx context.Context) *verdict { } } -// afterLookUp notes result, the lookup's, and runs the heuristics of +// runAfterLookup notes result, the lookup's, and runs the heuristics of // afterLookup. It returns the first verdict, or nil when none gives one. ctx is // the request's own context. -func (rq *request) afterLookUp( +func (rq *request) runAfterLookup( ctx context.Context, result lookupResult, ) *verdict { rq.noteLookup(result)