Set SendEpoch instead of cumulating it

`CalculateNextEpoch` should set `SendEpoch` instead of cumulating it.
This commit is contained in:
Andrea Maria Piana
2020-11-23 22:42:35 +01:00
parent 46125cfe6c
commit 26d8e94130

View File

@@ -545,7 +545,7 @@ func (n *Node) insertSyncState(groupID *state.GroupID, messageID state.MessageID
func (n *Node) updateSendEpoch(s state.State) state.State {
s.SendCount += 1
s.SendEpoch += n.nextEpoch(s.SendCount, n.epoch)
s.SendEpoch = n.nextEpoch(s.SendCount, n.epoch)
return s
}