rename queue config options

This commit is contained in:
Aine
2022-11-15 09:45:43 +02:00
parent a8780a32c1
commit 4ef139f875
3 changed files with 31 additions and 31 deletions

View File

@@ -13,16 +13,16 @@ import (
)
const (
commandHelp = "help"
commandStop = "stop"
commandSend = "send"
commandDKIM = "dkim"
commandCatchAll = botOptionCatchAll
commandUsers = botOptionUsers
commandQueueItems = botOptionQueueItems
commandQueueTries = botOptionQueueTries
commandDelete = "delete"
commandMailboxes = "mailboxes"
commandHelp = "help"
commandStop = "stop"
commandSend = "send"
commandDKIM = "dkim"
commandCatchAll = botOptionCatchAll
commandUsers = botOptionUsers
commandQueueBatch = botOptionQueueBatch
commandQueueRetries = botOptionQueueRetries
commandDelete = "delete"
commandMailboxes = "mailboxes"
)
type (
@@ -184,13 +184,13 @@ func (b *Bot) initCommands() commandList {
allowed: b.allowAdmin,
},
{
key: commandQueueItems,
key: commandQueueBatch,
description: "max amount of emails to process on each queue check",
sanitizer: utils.SanitizeIntString,
allowed: b.allowAdmin,
},
{
key: commandQueueTries,
key: commandQueueRetries,
description: "max amount of tries per email in queue before removal",
sanitizer: utils.SanitizeIntString,
allowed: b.allowAdmin,