multi: make tower MaxUpdates configurable

This is helpful in an itest environment where we want to quickly
saturate a session.
This commit is contained in:
Elle Mouton committed 2023-03-20 16:51:51 +02:00
1 parent d840761cc4
commit bad80ff583
3 files changed
+11

No files matched your search

+4
View File
@@ -22,6 +22,10 @@ type WtClient struct {
// of blocks to wait after the last channel of a session is closed
// 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."`
// 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."`
}
// Validate ensures the user has provided a valid configuration.