Skip to content
Snippets Groups Projects
Verified Commit 8c705006 authored by João Magalhães's avatar João Magalhães 🚀
Browse files

chore: force flush of file in state saving

Without flush we would might be loosing some bytes in writing.
This is explicitly stated in https://doc.rust-lang.org/std/fs/struct.File.html.

Also adds more explicit error handling in state related code.
parent 593dbf83
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment