Skip to content

config::Writeable: Write config in try_update

Fina Wilke requested to merge fina/config_update into main

This cleans up the code around updating and saving writeable configs:

  • update_return was unused and is removed
  • renames x_result methods to try_x for better consistency with std
  • write the config for Writeable in try_update. Removes the update impl for Writeable in the process, to ensure writing the config is never bypassed
  • to bypass writing the config introduce update_no_commit on ArcSwap<Writeable>
Edited by Fina Wilke

Merge request reports