mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
Upgrade go-limiter to fix building on 1.17 (#12358)
* Upgrade go-limiter * Modify quota system to pass contexts to upgraded go-limiter * One more spot * Add context vars to unit tests * missed one
This commit is contained in:
@@ -48,7 +48,7 @@ func rateLimitQuotaWrapping(handler http.Handler, core *vault.Core) http.Handler
|
||||
return
|
||||
}
|
||||
|
||||
quotaResp, err := core.ApplyRateLimitQuota("as.Request{
|
||||
quotaResp, err := core.ApplyRateLimitQuota(r.Context(), "as.Request{
|
||||
Type: quotas.TypeRateLimit,
|
||||
Path: path,
|
||||
MountPath: strings.TrimPrefix(core.MatchingMount(r.Context(), path), ns.Path),
|
||||
|
||||
Reference in New Issue
Block a user