Improve startup sync timeout handling

This commit is contained in:
Tulir Asokan committed 2019-08-30 20:57:08 +03:00
1 parent db53b95ab1
commit 2313321d01
6 files changed
+35 -18

No files matched your search

+4 -2
View File
@@ -39,7 +39,8 @@ type BridgeConfig struct {
MaxConnectionAttempts int `yaml:"max_connection_attempts"`
ConnectionRetryDelay int `yaml:"connection_retry_delay"`
ReportConnectionRetry bool `yaml:"report_connection_retry"`
ContactWaitDelay int `yaml:"contact_wait_delay"`
ChatListWait int `yaml:"chat_list_wait"`
PortalSyncWait int `yaml:"portal_sync_wait"`
CallNotices struct {
Start bool `yaml:"start"`
@@ -74,7 +75,8 @@ func (bc *BridgeConfig) setDefaults() {
bc.MaxConnectionAttempts = 3
bc.ConnectionRetryDelay = -1
bc.ReportConnectionRetry = true
bc.ContactWaitDelay = 30
bc.ChatListWait = 30
bc.PortalSyncWait = 600
bc.CallNotices.Start = true
bc.CallNotices.End = true