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

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