mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-30 18:58:10 -07:00
refactor limits and throttling
This commit is contained in:
@@ -542,9 +542,7 @@ func (client *Client) destroy() {
|
||||
ipaddr := client.IP()
|
||||
// this check shouldn't be required but eh
|
||||
if ipaddr != nil {
|
||||
client.server.connectionLimitsMutex.Lock()
|
||||
client.server.connectionLimits.RemoveClient(ipaddr)
|
||||
client.server.connectionLimitsMutex.Unlock()
|
||||
}
|
||||
|
||||
// alert monitors
|
||||
|
||||
Reference in New Issue
Block a user