Skip to content
Snippets Groups Projects
Commit 715fb5a8 authored by benjamin's avatar benjamin
Browse files

inceased timestmap grace

parent a06e705f
No related branches found
No related tags found
1 merge request!510Release
......@@ -18,14 +18,14 @@ const (
// arise due to cofactors with the message ID when doing the modulo
tenMsInNs = 10000019
halfTenMsInNs = tenMsInNs / 2
beforeGrace = 5 * time.Second
beforeGrace = 25 * time.Second
afterGrace = 2 * time.Second
)
var tenMsInNsLargeInt = large.NewInt(tenMsInNs)
// vetTimestamp determines which timestamp to use for a message. It will
// use the local timestamp provided in the message as long as it is within 5
// use the local timestamp provided in the message as long as it is within 25
// seconds before the round and 2 second after the round. Otherwise, it will
// use the round timestamp via mutateTimestamp
func vetTimestamp(localTS, ts time.Time, msgID channel.MessageID) time.Time {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment