multi: move timeouts into package wait
This commit moves the definition of timeout values into package `wait`, preparing the incoming merging of `lntemp` and `lntest`.
This commit is contained in:
12 files changed
+35
-36
No files matched your search
@@ -58,6 +58,11 @@ const (
|
||||
// will wait between attempting to flush a batch of modifications to
|
||||
// disk(db.batch-commit-interval).
|
||||
commitInterval = 10 * time.Millisecond
|
||||
|
||||
DefaultTimeout = wait.DefaultTimeout
|
||||
NodeStartTimeout = wait.NodeStartTimeout
|
||||
ChannelOpenTimeout = wait.ChannelOpenTimeout
|
||||
ChannelCloseTimeout = wait.ChannelCloseTimeout
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -282,7 +287,7 @@ func (cfg *BaseNodeConfig) GenArgs() []string {
|
||||
case BackendSqlite:
|
||||
args = append(args, "--db.backend=sqlite")
|
||||
args = append(args, fmt.Sprintf("--db.sqlite.busytimeout=%v",
|
||||
SqliteBusyTimeout))
|
||||
wait.SqliteBusyTimeout))
|
||||
}
|
||||
|
||||
if cfg.FeeURL != "" {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//go:build !darwin && !kvdb_etcd && !kvdb_postgres
|
||||
// +build !darwin,!kvdb_etcd,!kvdb_postgres
|
||||
|
||||
package lntest
|
||||
package wait
|
||||
|
||||
import "time"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//go:build darwin && !kvdb_etcd && !kvdb_postgres
|
||||
// +build darwin,!kvdb_etcd,!kvdb_postgres
|
||||
|
||||
package lntest
|
||||
package wait
|
||||
|
||||
import "time"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//go:build kvdb_etcd || kvdb_postgres
|
||||
// +build kvdb_etcd kvdb_postgres
|
||||
|
||||
package lntest
|
||||
package wait
|
||||
|
||||
import "time"
|
||||
|
||||
Reference in new issue
Block a user