mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
Make the max queue size and give up time configurable
Today, the maximum number of items in the queue, as well as how long we keep attempting to send each item, is hard-coded and not changed by end users. While they are totally adequate for chasquid's main use cases, it can still be useful for some users to change them. So this patch adds two new configuration options for those settings. They're marked experimental for now, so we can adjust them if needed after they get more exposure. Thanks to Lewis Ross-Jones <lewis_r_j@hotmail.com> for suggesting this improvement, and help with testing it.
This commit is contained in:
@@ -142,6 +142,7 @@ func main() {
|
||||
STSCache: stsCache,
|
||||
}
|
||||
s.InitQueue(conf.DataDir+"/queue", localC, remoteC)
|
||||
s.SetQueueLimits(conf.MaxQueueItems, conf.GiveUpSendAfterDuration())
|
||||
|
||||
// Load the addresses and listeners.
|
||||
systemdLs, err := systemd.Listeners()
|
||||
|
||||
Reference in New Issue
Block a user