-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(senders): fix workers lock key in discord and telegram #1027
Conversation
/build |
/build |
senders/discord/init.go
Outdated
discordLockTTL = 30 * time.Second | ||
workerName = "DiscordBot" | ||
messenger = "discord" | ||
discordLockKey = "moira-discord-users:moira-bot-host:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Мб так? Или у нас есть какая-то конвенция именования таких префиксов?
discordLockKey = "moira-discord-users:moira-bot-host:" | |
discordLockPrefix = "moira-discord-users:moira-bot-host:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поменял
senders/discord/init.go
Outdated
workerAction, | ||
).Run(nil) | ||
} | ||
|
||
func discordLock(name string) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тогда тут можно будет так
func discordLock(name string) string { | |
func discordLockKey(name string) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поменял
senders/telegram/init.go
Outdated
messenger = "telegram" | ||
telegramLockTTL = 30 * time.Second | ||
hidden = "[DATA DELETED]" | ||
telegramLockKey = "moira-telegram-users:moira-bot-host:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Аналогично
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поменял
Build and push Docker images with tag: 2024-05-22.6866623 |
2 similar comments
Build and push Docker images with tag: 2024-05-22.6866623 |
Build and push Docker images with tag: 2024-05-22.6866623 |
Added the ability to make multiple telegram and discord senders
Fixed a bug with the same lock in telegram and discord senders when creating multiple senders