Setting watch_configuration = true leads to endless config reloading
I set watch_configuration = true
and found myself with a log full of
2025-01-08T17:16:03Z DEBUG arti::reload_cfg: Config reload event Some(FileChanged): reloading configuration.
2025-01-08T17:16:03Z INFO arti::reload_cfg: Successfully reloaded configuration.
2025-01-08T17:16:04Z DEBUG arti::reload_cfg: Config reload event Some(FileChanged): reloading configuration.
2025-01-08T17:16:04Z INFO arti::reload_cfg: Successfully reloaded configuration.
2025-01-08T17:16:05Z DEBUG arti::reload_cfg: Config reload event Some(FileChanged): reloading configuration.
2025-01-08T17:16:05Z INFO arti::reload_cfg: Successfully reloaded configuration.
2025-01-08T17:16:06Z DEBUG arti::reload_cfg: Config reload event Some(FileChanged): reloading configuration.
2025-01-08T17:16:06Z INFO arti::reload_cfg: Successfully reloaded configuration.
2025-01-08T17:16:07Z DEBUG arti::reload_cfg: Config reload event Some(FileChanged): reloading configuration.
2025-01-08T17:16:07Z INFO arti::reload_cfg: Successfully reloaded configuration.
2025-01-08T17:16:08Z DEBUG arti::reload_cfg: Config reload event Some(FileChanged): reloading configuration.
2025-01-08T17:16:08Z INFO arti::reload_cfg: Successfully reloaded configuration.
2025-01-08T17:16:09Z DEBUG arti::reload_cfg: Config reload event Some(FileChanged): reloading configuration.
2025-01-08T17:16:09Z INFO arti::reload_cfg: Successfully reloaded configuration.
2025-01-08T17:16:10Z DEBUG arti::reload_cfg: Config reload event Some(FileChanged): reloading configuration.
...
This seems to be because we bumped notify
to 0.7.0, prior to which Access(Open(_))
events were never reported. See https://github.com/notify-rs/notify/pull/612