Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy5189 committed Sep 24, 2024
1 parent 1ab030d commit 7c06076
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/regex_rate_limiter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ per_site_regexes_with_rates:
}
ipToRegexStates := IpToRegexStates{}
mockBanner := MockBanner{}
var decisionListsMutex sync.Mutex
var decisionListsMutex sync.RWMutex
var decisionLists DecisionLists
var passwordProtectedPaths PasswordProtectedPaths
configToStructs(&config, &passwordProtectedPaths, &decisionLists)
Expand Down Expand Up @@ -311,7 +311,7 @@ regexes_with_rates:
}
ipToRegexStates := IpToRegexStates{}
mockBanner := MockBanner{}
var decisionListsMutex sync.Mutex
var decisionListsMutex sync.RWMutex
var decisionLists DecisionLists
var passwordProtectedPaths PasswordProtectedPaths
configToStructs(&config, &passwordProtectedPaths, &decisionLists)
Expand Down Expand Up @@ -372,7 +372,7 @@ regexes_with_rates:
if err != nil {
panic("couldn't parse config file!")
}
var decisionListsMutex sync.Mutex
var decisionListsMutex sync.RWMutex
var decisionLists DecisionLists
var passwordProtectedPaths PasswordProtectedPaths
configToStructs(&config, &passwordProtectedPaths, &decisionLists)
Expand Down

0 comments on commit 7c06076

Please sign in to comment.