Open kaovilai opened 1 year ago
https://github.com/konveyor/mig-demo-apps/blob/e27a21e3e8523a201d42de87649a12c7d8aa0402/apps/todolist-mariadb-go/todolist.go#L179
Refer to this function which https://pkg.go.dev/os#File.Sync
commits the current contents of the file to stable storage so we don't have to use sleep as a slow workaround to gain more reliability.
https://github.com/konveyor/mig-demo-apps/blob/e27a21e3e8523a201d42de87649a12c7d8aa0402/apps/todolist-mariadb-go/todolist.go#L179
Refer to this function which https://pkg.go.dev/os#File.Sync
commits the current contents of the file to stable storage so we don't have to use sleep as a slow workaround to gain more reliability.