do not cancel inactive faucet (#208)

* fix logs

* remove cancel faucet if not active
This commit is contained in:
gohumble 2021-12-24 16:04:36 +01:00 committed by GitHub
parent 46d77de38e
commit 0ce42e8f1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -247,7 +247,7 @@ func (bot *TipBot) acceptInlineFaucetHandler(ctx context.Context, c *tb.Callback
if !inlineFaucet.Active {
log.Errorf(fmt.Sprintf("[faucet] faucet %s inactive.", inlineFaucet.ID))
bot.cancelInlineFaucet(ctx, c, true) // cancel without ID check
//bot.cancelInlineFaucet(ctx, c, true) // cancel without ID check
return
}
// release faucet no matter what