Add new experimental feature

This commit is contained in:
Louis Dureuil 2025-01-30 11:30:04 +01:00
parent 00e764b0d3
commit 7ae6dda03f
No known key found for this signature in database
4 changed files with 28 additions and 0 deletions

View file

@ -86,6 +86,19 @@ impl RoFeatures {
.into())
}
}
pub fn check_network(&self, disabled_action: &'static str) -> Result<()> {
if self.runtime.network {
Ok(())
} else {
Err(FeatureNotEnabledError {
disabled_action,
feature: "network",
issue_link: "https://github.com/orgs/meilisearch/discussions/805",
}
.into())
}
}
}
impl FeatureData {