use crate::sns::report::cache_paths::{SnsCacheCollection, sns_snapshot_cache_paths};
use std::path::{Path, PathBuf};
#[derive(Clone, Debug, Eq, PartialEq)]
pub(super) enum SnsNeuronsCacheCollection {}
impl SnsCacheCollection for SnsNeuronsCacheCollection {
const COLLECTION: &'static str = "neurons";
}
#[must_use]
pub fn sns_neurons_cache_path(cache_root: &Path, network: &str, root_canister_id: &str) -> PathBuf {
sns_snapshot_cache_paths::<SnsNeuronsCacheCollection>(cache_root, network, root_canister_id)
.snapshot_path
}
#[must_use]
pub fn sns_neurons_refresh_lock_path(
cache_root: &Path,
network: &str,
root_canister_id: &str,
) -> PathBuf {
sns_snapshot_cache_paths::<SnsNeuronsCacheCollection>(cache_root, network, root_canister_id)
.refresh_lock_path
}
#[must_use]
pub fn sns_neurons_refresh_attempt_path(
cache_root: &Path,
network: &str,
root_canister_id: &str,
) -> PathBuf {
sns_snapshot_cache_paths::<SnsNeuronsCacheCollection>(cache_root, network, root_canister_id)
.refresh_attempt_path
}