server+lncfg: make max in-mem tasks configurable

Add a `MaxTasksInMemQueue` field to the `WtClient` config so that users
can change the default if they please.
This commit is contained in:
Elle Mouton committed 2023-05-16 10:57:50 +02:00
1 parent 56cd825695
commit 1cdf15a39b
3 files changed
+15 -2

No files matched your search

+4
View File
@@ -23,6 +23,10 @@ type WtClient struct {
// before sending the DeleteSession message to the tower server.
SessionCloseRange uint32 `long:"session-close-range" description:"The range over which to choose a random number of blocks to wait after the last channel of a session is closed before sending the DeleteSession message to the tower server. Set to 1 for no delay."`
// MaxTasksInMemQueue is the maximum number of back-up tasks that should
// be queued in memory before overflowing to disk.
MaxTasksInMemQueue uint64 `long:"max-tasks-in-mem-queue" description:"The maximum number of updates that should be queued in memory before overflowing to disk."`
// MaxUpdates is the maximum number of updates to be backed up in a
// single tower sessions.
MaxUpdates uint16 `long:"max-updates" description:"The maximum number of updates to be backed up in a single session."`