MCPcopy Create free account
hub / github.com/dadgar/onecache / replicator

Struct replicator

onecache/replicator.go:47–52  ·  view source on GitHub ↗

replicator replicates data to peers as they are dirtied.

Source from the content-addressed store, hash-verified

45
46// replicator replicates data to peers as they are dirtied.
47type replicator struct {
48 n *Node
49 peers map[string]*peerSync
50 quit chan struct{}
51 lock sync.Mutex
52}
53
54// replicationTask identifies what replication is needed.
55type replicationTask byte

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected