Skip to content

Commit 8a92c8f

Browse files
committed
Change notifier ID to UUID for distributed setups
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent 9789693 commit 8a92c8f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

coderd/database/queries.sql.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/notifications.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ WITH acquired AS (
3838
notification_messages
3939
SET updated_at = NOW(),
4040
status = 'leased'::notification_message_status,
41-
status_reason = 'Leased by notifier ' || sqlc.arg('notifier_id')::int,
41+
status_reason = 'Leased by notifier ' || sqlc.arg('notifier_id')::uuid,
4242
leased_until = NOW() + CONCAT(sqlc.arg('lease_seconds')::int, ' seconds')::interval
4343
WHERE id IN (SELECT nm.id
4444
FROM notification_messages AS nm

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy