Function relay_server::spool_utils::truncate
source · pub fn truncate(path: &PathBuf) -> Result<u64, BufferError>
Expand description
Truncates the spool file deleting all the persisted on-disk data.
Returns the number of deleted envelopes when run successfully.