Example #1
0
func init() {
	newChangeCh = make(chan *store.ChangeRequest, 100)

	store.AddChosenCallback(handleChosen)
	store.AddProposalCallback(handleProposalChange)
	chrequest.AddChangeCallback(handleChangeRequest)
}
Example #2
0
func init() {
	store.AddAppliedCallback(handleApplied)
	store.AddChosenCallback(handleChosen)
	store.AddDegradedCallback(handleDegraded)
	store.AddProposalCallback(handleProposalChange)
}