Skip to content

Commit

Permalink
feat: support entity.Config in commit log
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Jan 4, 2019
1 parent d293e8f commit 8ac0493
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/node/sql.go
Expand Up @@ -111,9 +111,9 @@ func (n *Node) createCommitLog(operation string, reflectValue reflect.Value) *no
}
log.Entity = &node.CommitLog_Entity{Conversation: data}
case *entity.ConversationMember:
log.Entity = &node.CommitLog_Entity{
ConversationMember: data,
}
log.Entity = &node.CommitLog_Entity{ConversationMember: data}
case *entity.Config:
log.Entity = &node.CommitLog_Entity{Config: data}
case *p2p.Event:
log.Entity = &node.CommitLog_Entity{Event: data}
default:
Expand Down

0 comments on commit 8ac0493

Please sign in to comment.