You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constsql1=postgres(process.env.DATABASE_URL);constsql2=awaitsql1.reserve();sql2.release();awaitsql1.end();// never completes
Once I have reserved/released a ReservedSql connection, the only way I can end the whole thing cleanly is to add a timeout with await sql1.end({timeout: 0.1});.
By the way, I notice that the .release method doesn't seem asynchronous, even though the example in the readme has an await. That doesn't fix this issue though.
Is this expected? Thanks!
The text was updated successfully, but these errors were encountered:
Awesome library! Thanks so far. I have a small issue though... this works fine:
But this hangs indefinitely:
Once I have reserved/released a ReservedSql connection, the only way I can end the whole thing cleanly is to add a timeout with
await sql1.end({timeout: 0.1});
.By the way, I notice that the
.release
method doesn't seem asynchronous, even though the example in the readme has an await. That doesn't fix this issue though.Is this expected? Thanks!
The text was updated successfully, but these errors were encountered: