From 8abf6ad255cc03ad8049b5287047f0d345e0fd7c Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Tue, 24 Dec 2019 23:27:16 +0100 Subject: [PATCH] add debug statement --- ip_manager/throttle.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ip_manager/throttle.go b/ip_manager/throttle.go index 1b61b95..6f8113b 100644 --- a/ip_manager/throttle.go +++ b/ip_manager/throttle.go @@ -115,9 +115,10 @@ func (i *IPPool) ReleaseIP(ip string) { if localIP.IP == ip { localIP.InUse = false localIP.LastUse = time.Now() - break + return } } + util.SendErrorToSlack("something went wrong while releasing the IP %s as we reached the end of the function", ip) } func (i *IPPool) SetThrottled(ip string) {