From 35efe8d8f4f6d887613d61877a910c9818fc654e Mon Sep 17 00:00:00 2001 From: wbt Date: Wed, 14 Nov 2018 16:31:18 -0500 Subject: [PATCH] Add 5 minute grace period to faucet timeout --- cmd/faucet/faucet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go index f8092084ad..a01e6381b7 100644 --- a/cmd/faucet/faucet.go +++ b/cmd/faucet/faucet.go @@ -506,7 +506,7 @@ func (f *faucet) apiHandler(conn *websocket.Conn) { Time: time.Now(), Tx: signed, }) - f.timeouts[username] = time.Now().Add(time.Duration(*minutesFlag*int(math.Pow(3, float64(msg.Tier)))) * time.Minute) + f.timeouts[username] = time.Now().Add(time.Duration(*minutesFlag*int(math.Pow(3, float64(msg.Tier)))-5) * time.Minute) fund = true } f.lock.Unlock()