Skip to content

Commit

Permalink
fix: Increase max wait time to 30s (from default 2s)
Browse files Browse the repository at this point in the history
This increases the amount of time that Prisma will wait to acquire
a transaction from the database to 30s. By default, Postgres will wait
indefinitely (same with RDS), so increasing to 30s is fairly sane.

Signed-off-by: Lucian Buzzo <lucian.buzzo@gmail.com>
  • Loading branch information
LucianBuzzo committed May 23, 2023
1 parent 9838684 commit 9572b5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export const createClient = (prisma: PrismaClient, getContext: GetContextFn) =>
return result;
},
{
maxWait: 30000,
timeout: 30000,
},
);
Expand Down

0 comments on commit 9572b5b

Please sign in to comment.