MCPcopy
hub / github.com/ha/doozerd / VisitFile

Method VisitFile

src/pkg/peer/peer.go:296–305  ·  view source on GitHub ↗
(path string, f *doozer.FileInfo)

Source from the content-addressed store, hash-verified

294}
295
296func (c cloner) VisitFile(path string, f *doozer.FileInfo) {
297 // store.Clobber is okay here because the event
298 // has already passed through another store
299 body, _, err := c.cl.Get(path, &f.Rev)
300 if err != nil {
301 panic(err)
302 }
303 mut := store.MustEncodeSet(path, string(body), store.Clobber)
304 c.ch <- store.Op{f.Rev, mut}
305}
306
307
308func setReady(p consensus.Proposer, self string) {

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected