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

Function anchor_at

atomic-core/src/pristine/txn/write/operation.rs:351–372  ·  view source on GitHub ↗
(timestamp_ms: i64)

Source from the content-addressed store, hash-verified

349 }
350
351 fn anchor_at(timestamp_ms: i64) -> Operation {
352 Operation::new(OperationPayload {
353 parents: Vec::new(),
354 kind: OperationKind::Anchor,
355 relation: None,
356 working_copy: None,
357 before: RepoStateRef::EMPTY,
358 delta: RepoStateDelta {
359 after: RepoStateRef::EMPTY,
360 metadata: Vec::new(),
361 effects: Vec::new(),
362 },
363 git_observed: Vec::new(),
364 evidence: Vec::new(),
365 actor: ActorRef::System {
366 name: "test".into(),
367 },
368 timestamp_ms,
369 lossy: Vec::new(),
370 })
371 .unwrap()
372 }
373
374 fn child(parent: OperationId) -> Operation {
375 Operation::new(OperationPayload {

Callers 1

anchorFunction · 0.85

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected