Tolerate only one error during ntp sync
Previously we were doing 5 concurrent requests, thus it was safe to tolerate 2 errors. With 4 it doesn't make sense to use only 2 responses, because even if 1 of them is skewed - we will set incorrect time.
This commit is contained in:
parent
b775261f4e
commit
bc14e6faee
|
@ -15,7 +15,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// DefaultMaxAllowedFailures defines how many failures will be tolerated.
|
// DefaultMaxAllowedFailures defines how many failures will be tolerated.
|
||||||
DefaultMaxAllowedFailures = 2
|
DefaultMaxAllowedFailures = 1
|
||||||
|
|
||||||
// FastNTPSyncPeriod period between ntp synchronizations before the first
|
// FastNTPSyncPeriod period between ntp synchronizations before the first
|
||||||
// successful connection.
|
// successful connection.
|
||||||
|
|
Loading…
Reference in New Issue