async fn check_sync(peer: &'static Peer, path: Path) -> Result<()>
Checks if this node is in sync for the given path with the given peer.
Syncs whenever a difference is detected.