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:
Dmitry Shulyak 2018-05-24 10:55:56 +03:00 committed by Dmitry Shulyak
parent b775261f4e
commit bc14e6faee
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ import (
const (
// DefaultMaxAllowedFailures defines how many failures will be tolerated.
DefaultMaxAllowedFailures = 2
DefaultMaxAllowedFailures = 1
// FastNTPSyncPeriod period between ntp synchronizations before the first
// successful connection.