Make message buffers bigger and make locking message handling less hacky

This commit is contained in:
Tulir Asokan
2020-07-23 20:10:21 +03:00
parent f86f06a403
commit 0430446d6d
4 changed files with 25 additions and 12 deletions

View File

@ -44,6 +44,8 @@ type BridgeConfig struct {
ReportConnectionRetry bool `yaml:"report_connection_retry"`
ChatListWait int `yaml:"chat_list_wait"`
PortalSyncWait int `yaml:"portal_sync_wait"`
UserMessageBuffer int `yaml:"user_message_buffer"`
PortalMessageBuffer int `yaml:"portal_message_buffer"`
CallNotices struct {
Start bool `yaml:"start"`
@ -96,6 +98,8 @@ func (bc *BridgeConfig) setDefaults() {
bc.ReportConnectionRetry = true
bc.ChatListWait = 30
bc.PortalSyncWait = 600
bc.UserMessageBuffer = 1024
bc.PortalMessageBuffer = 128
bc.CallNotices.Start = true
bc.CallNotices.End = true