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

Method strict

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

Creates strict options for production use. Strict options enable all validation and fail on any conflict. This is the safest configuration. # Configuration - All validation enabled - Fail on conflict: `true` - Allow duplicate IDs: `false` # Example ```rust use atomic_core::crdt::apply::options::ApplyOptions; let options = ApplyOptions::strict(); assert!(options.fail_on_conflict()); assert!(!

()

Source from the content-addressed store, hash-verified

200 /// assert!(!options.allow_duplicate_ids());
201 /// ```
202 pub fn strict() -> Self {
203 Self {
204 validate_ordering: true,
205 validate_references: true,
206 track_conflicts: true,
207 fail_on_conflict: true,
208 allow_duplicate_ids: false,
209 update_reverse_indexes: true,
210 max_operations: None,
211 validate_content_ranges: true,
212 }
213 }
214
215 /// Creates lenient options for recovery scenarios.
216 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected