func bgNop(p consensus.Proposer) chan store.Event { ch := make(chan store.Event) go func() { ch <- p.Propose([]byte(store.Nop)) }() return ch }
func setReady(p consensus.Proposer, self string) { m, err := store.EncodeSet("/ctl/node/"+self+"/writable", "true", 0) if err != nil { log.Println(err) return } p.Propose([]byte(m)) }