mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-10-28 22:46:28 +00:00
Support network in dumps
This commit is contained in:
@@ -114,6 +114,13 @@ impl DumpReader {
|
||||
DumpReader::Compat(compat) => compat.features(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn network(&self) -> Result<Option<&v6::Network>> {
|
||||
match self {
|
||||
DumpReader::Current(current) => Ok(current.network()),
|
||||
DumpReader::Compat(compat) => compat.network(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<V6Reader> for DumpReader {
|
||||
|
||||
Reference in New Issue
Block a user