Change out usync.Locker for usync.Monitor
This commit is contained in:
@@ -41,7 +41,7 @@ type Handler struct {
|
||||
TrustXForwardedFor bool
|
||||
TrustCFConnectingIP bool
|
||||
|
||||
rateLimitMap usync.Locker[map[string] rateLimitEntry]
|
||||
rateLimitMap usync.Monitor[map[string] rateLimitEntry]
|
||||
}
|
||||
|
||||
func (this *Handler) Init (ctx context.Context) error {
|
||||
|
||||
Reference in New Issue
Block a user