Only accept log commands
This commit is contained in:
parent
69e264f22c
commit
6826a0b22d
@ -164,6 +164,10 @@ func NewStore(config Config) (Store, error) {
|
||||
}
|
||||
|
||||
func (s *store) Apply(entry *raft.Log) interface{} {
|
||||
if entry.Type != raft.LogCommand {
|
||||
return nil
|
||||
}
|
||||
|
||||
logger := s.logger.WithFields(log.Fields{
|
||||
"index": entry.Index,
|
||||
"term": entry.Term,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user