mirror of
https://github.com/warmbly/warmbly.git
synced 2026-11-01 08:12:42 +00:00
feat: give the workspace-wide unibox plan allowance its own advisory lock namespace instead of sharing the warmup recipient lock's
This commit is contained in:
@@ -316,7 +316,7 @@ func checkManualSendPlan(ctx context.Context, tx pgx.Tx, task, org uuid.UUID, n,
|
||||
if allowance <= 0 {
|
||||
return nil
|
||||
}
|
||||
if _, err := tx.Exec(ctx, `SELECT pg_advisory_xact_lock(hashtextextended($1,273))`, org.String()); err != nil {
|
||||
if _, err := tx.Exec(ctx, `SELECT pg_advisory_xact_lock(hashtextextended($1,274))`, org.String()); err != nil {
|
||||
return err
|
||||
}
|
||||
var used int
|
||||
|
||||
Reference in New Issue
Block a user