mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-14 12:17:10 +00:00
fix(stats): unblock deploy and register /stats in Telegram command menu
- Remove ReservedConcurrentExecutions: 1 (account lacks unreserved concurrency headroom; deploy rolled back). Accept best-effort counter semantics as documented. - Add /stats to aws/telegram-commands.json so it appears in the Telegram client's / autocomplete after the next deploy.
This commit is contained in:
1 parent
4f7a6d17f0
commit
7f71e3cf6f
3 files changed
+7
-3
No files matched your search
@@ -31,7 +31,9 @@ type counter struct {
|
||||
func countKey(name string) string { return countPrefix + name }
|
||||
|
||||
// Inc increments the persistent invocation count for the named command.
|
||||
// Errors are logged and swallowed — stats are best-effort.
|
||||
// Errors are logged and swallowed and concurrent invocations of the same
|
||||
// command may lose updates — stats are best-effort. A future atomic
|
||||
// increment (e.g. DynamoDB UpdateItem ADD) would close the race.
|
||||
func (c *counter) Inc(ctx context.Context, name string) {
|
||||
key := countKey(name)
|
||||
var entry countEntry
|
||||
|
||||
Reference in new issue
Block a user