ccorcos / tuple-database

406 stars 19 forks source link

Should `transactionalReadAsync` use async retries? #32

Open wernst opened 6 months ago

wernst commented 6 months ago

Was looking through the codebase and saw that transactionalReadAsync is using a sync retry (and potentially not awaiting the async tx.commit call). Should that be async?

If so happy to put out a quick PR.

Line for reference: https://github.com/ccorcos/tuple-database/blob/aa18612e57fe4946df99866e7f3e7bf40cbe87b8/src/database/async/transactionalReadAsync.ts#L26

ccorcos commented 6 months ago

absolutely a bug!