Fork me on GitHub
#xtdb
<
2022-06-28
>
plins19:06:34

whats the best way to block/check if a tx was sucessfull? im a bit confused with tx/sync and tx/tx-committed? . Should I call tx/sync first, then tx-committed? I just want to make sure that everything is fine with the tx before going on

refset19:06:22

It sounds like you just want to pass the return value from submit-tx into await-tx and then also into tx-committed?

refset19:06:55

if you use sync instead of await-tx then you may be waiting longer than strictly necessary

1
refset19:06:59

no problem 🙂