MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / set_origin_peer_id

Function set_origin_peer_id

nodedb/src/event/crdt_sync/packager.rs:54–56  ·  view source on GitHub ↗

Set the origin peer ID (called once during EventPlane startup).

(peer_id: u64)

Source from the content-addressed store, hash-verified

52
53/// Set the origin peer ID (called once during EventPlane startup).
54pub fn set_origin_peer_id(peer_id: u64) {
55 ORIGIN_PEER_ID.store(peer_id, Ordering::Relaxed);
56}
57
58/// Shared packager state (owned by the Event Plane, called from consumer loop).
59pub struct DeltaPackager {

Callers 1

spawnMethod · 0.85

Calls 1

storeMethod · 0.45

Tested by

no test coverage detected