MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / lenient

Method lenient

atomic-core/src/crdt/apply/options.rs:235–246  ·  view source on GitHub ↗

Creates lenient options for recovery scenarios. Lenient options minimize validation and allow operations that might otherwise fail. Use this for repairing corrupted repositories. # Configuration - Minimal validation - Fail on conflict: `false` - Allow duplicate IDs: `true` # Example ```rust use atomic_core::crdt::apply::options::ApplyOptions; let options = ApplyOptions::lenient(); assert!(!o

()

Source from the content-addressed store, hash-verified

233 /// assert!(options.allow_duplicate_ids());
234 /// ```
235 pub fn lenient() -> Self {
236 Self {
237 validate_ordering: false,
238 validate_references: false,
239 track_conflicts: true,
240 fail_on_conflict: false,
241 allow_duplicate_ids: true,
242 update_reverse_indexes: true,
243 max_operations: None,
244 validate_content_ranges: false,
245 }
246 }
247
248 /// Creates options optimized for performance.
249 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected