summaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorY.Horie <u5.horie@gmail.com>2023-02-07 03:29:03 +0900
committerGitHub <noreply@github.com>2023-02-06 18:29:03 +0000
commit8d3a1b8bcbc36930ca3ad0a6b38604ceaa697ecb (patch)
tree667145696d028e6893dc3d88a56a778a27e3366a /go.mod
parentac83b7e218e3c3eb4ef26922196759434b130786 (diff)
caddyauth: Use singleflight for basic auth (#5344)
* caddyauth: Add singleflight for basic auth * Fixes #5338 * it occurred the thunder herd problem like this https://medium.com/@mhrlife/avoid-duplicate-requests-while-filling-cache-98c687879f59 * Update modules/caddyhttp/caddyauth/basicauth.go Fix comment Co-authored-by: Francis Lavoie <lavofr@gmail.com> --------- Co-authored-by: Francis Lavoie <lavofr@gmail.com> Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod1
1 files changed, 1 insertions, 0 deletions
diff --git a/go.mod b/go.mod
index b762aee..63cf4f2 100644
--- a/go.mod
+++ b/go.mod
@@ -32,6 +32,7 @@ require (
go.uber.org/zap v1.23.0
golang.org/x/crypto v0.4.0
golang.org/x/net v0.5.0
+ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
golang.org/x/term v0.4.0
google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c
gopkg.in/natefinch/lumberjack.v2 v2.0.0