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

	store.AddChosenCallback(handleChosen)
	store.AddProposalCallback(handleProposalChange)
	chrequest.AddChangeCallback(handleChangeRequest)
}
示例#2
0
文件: main.go 项目: jbeshir/unanimity
func init() {
	// Unbuffered.
	receivedConnCh = make(chan receivedConn)

	newRequestCh = make(chan *chproto.ChangeRequest, 100)

	store.AddChosenCallback(handleChosenRequests)
}
示例#3
0
func init() {
	store.AddAppliedCallback(handleApplied)
	store.AddChosenCallback(handleChosen)
	store.AddDegradedCallback(handleDegraded)
	store.AddProposalCallback(handleProposalChange)
}