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

Function newReplicator

onecache/replicator.go:65–71  ·  view source on GitHub ↗

NewReplicator returns a replicator for the passed node.

(n *Node)

Source from the content-addressed store, hash-verified

63
64// NewReplicator returns a replicator for the passed node.
65func newReplicator(n *Node) *replicator {
66 return &replicator{
67 n: n,
68 peers: make(map[string]*peerSync),
69 quit: make(chan struct{}),
70 }
71}
72
73// Stop stops replication.
74func (r *replicator) Stop() {

Callers 1

CreateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected