Pārlūkot izejas kodu

rise default tolerate-time-skewness

pull/573/head
Andrey Butirsky 1 mēnesi atpakaļ
vecāks
revīzija
85a59dac34
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1
    1
      example.config.toml
  2. 1
    1
      mtglib/init.go

+ 1
- 1
example.config.toml Parādīt failu

97
 # Sometimes time can be skewed so we accept all messages within a
97
 # Sometimes time can be skewed so we accept all messages within a
98
 # time range of this parameter.
98
 # time range of this parameter.
99
 #
99
 #
100
-# Default value is 3s
100
+# Default value is 15s
101
 tolerate-time-skewness = "5s"
101
 tolerate-time-skewness = "5s"
102
 
102
 
103
 # Telegram has a concept of DC. You can think about DC as a number of a cluster
103
 # Telegram has a concept of DC. You can think about DC as a number of a cluster

+ 1
- 1
mtglib/init.go Parādīt failu

87
 
87
 
88
 	// DefaultTolerateTimeSkewness is a default timeout for time skewness on a
88
 	// DefaultTolerateTimeSkewness is a default timeout for time skewness on a
89
 	// faketls timeout verification.
89
 	// faketls timeout verification.
90
-	DefaultTolerateTimeSkewness = 3 * time.Second
90
+	DefaultTolerateTimeSkewness = 15 * time.Second
91
 
91
 
92
 	// DefaultPreferIP is a default value for Telegram IP connectivity preference.
92
 	// DefaultPreferIP is a default value for Telegram IP connectivity preference.
93
 	DefaultPreferIP = "prefer-ipv6"
93
 	DefaultPreferIP = "prefer-ipv6"

Notiek ielāde…
Atcelt
Saglabāt