replicator replicates data to peers as they are dirtied.
| 45 | |
| 46 | // replicator replicates data to peers as they are dirtied. |
| 47 | type 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. |
| 55 | type replicationTask byte |
nothing calls this directly
no outgoing calls
no test coverage detected