use crate::sns::report::{
SnsHostError,
cache_storage::{SnsCacheLoadErrors, collect_sns_cache_paths, read_sns_cache_header},
neurons_cache::{
SNS_NEURONS_CACHE_SCHEMA_VERSION, model::SnsNeuronsCacheHeader,
paths::SnsNeuronsCacheCollection,
},
};
use std::path::{Path, PathBuf};
pub(in crate::sns::report) fn collect_sns_neurons_cache_paths(
cache_root: &Path,
network: &str,
) -> Result<Vec<PathBuf>, SnsHostError> {
collect_sns_cache_paths::<SnsNeuronsCacheCollection>(cache_root, network)
}
pub(in crate::sns::report) fn read_sns_neurons_cache_header(
path: &Path,
network: &str,
) -> Result<SnsNeuronsCacheHeader, SnsHostError> {
read_sns_cache_header(
path,
network,
SNS_NEURONS_CACHE_SCHEMA_VERSION,
SnsCacheLoadErrors::neurons(),
)
}