zkBob / libzkbob-rs

Apache License 2.0
1 stars 3 forks source link

Fix db transaction timeout error on low resource devices by making explicit commit #69

Closed AllFi closed 1 year ago

AllFi commented 1 year ago

As described in the issue sometimes we have IndexedDB timeout errors. In this PR the explicit IDBTransaction.commit call was added to prevent such errors.

I tested our app (prod console) locally with Samsung Galaxy A51 and very often I was able to reproduce this error. After this change, the error was gone.

I also didn't find any performance issues with this solution.

AllFi commented 1 year ago

70