mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 14:12:47 +02:00
postgres: add connection limit
This commit is contained in:
@@ -4,6 +4,7 @@ import "time"
|
||||
|
||||
// Config holds postgres configuration data.
|
||||
type Config struct {
|
||||
Dsn string `long:"dsn" description:"Database connection string."`
|
||||
Timeout time.Duration `long:"timeout" description:"Database connection timeout. Set to zero to disable."`
|
||||
Dsn string `long:"dsn" description:"Database connection string."`
|
||||
Timeout time.Duration `long:"timeout" description:"Database connection timeout. Set to zero to disable."`
|
||||
MaxConnections int `long:"maxconnections" description:"The maximum number of open connections to the database. Set to zero for unlimited."`
|
||||
}
|
||||
|
Reference in New Issue
Block a user