Set SendEpoch instead of cumulating it (#86)

`CalculateNextEpoch` should set `SendEpoch` instead of cumulating it.
This commit is contained in:
Andrea Maria Piana
2020-11-24 13:40:13 +01:00
committed by GitHub
parent daa5e8b8a2
commit d6b27d3843

View File

@@ -728,6 +728,6 @@ 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
}