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

Method replicateDelete

onecache/replicator.go:409–417  ·  view source on GitHub ↗

replicateDelete replicates the deletion of a key.

(key, peer string)

Source from the content-addressed store, hash-verified

407
408// replicateDelete replicates the deletion of a key.
409func (p *peerSync) replicateDelete(key, peer string) error {
410 var resp struct{}
411 args := StorageArgs{
412 Key: key,
413 ExplicitPeer: peer,
414 }
415
416 return p.r.n.server.Remove(args, &resp)
417}
418
419// Collapses the passed operation log returning the final replication task.
420func collapseOpLog(log []replicationTask) (replicationTask, error) {

Callers 1

replicateMethod · 0.95

Calls 1

RemoveMethod · 0.45

Tested by

no test coverage detected