mirror of https://github.com/status-im/consul.git
Handle new Raft API
This commit is contained in:
parent
29fe144b5b
commit
1e3adb54f3
|
@ -42,7 +42,8 @@ func (c *consulFSM) State() *StateStore {
|
|||
return c.state
|
||||
}
|
||||
|
||||
func (c *consulFSM) Apply(buf []byte) interface{} {
|
||||
func (c *consulFSM) Apply(log *raft.Log) interface{} {
|
||||
buf := log.Data
|
||||
switch structs.MessageType(buf[0]) {
|
||||
case structs.RegisterRequestType:
|
||||
return c.applyRegister(buf[1:])
|
||||
|
|
Loading…
Reference in New Issue