Skip to content

Agent Mesh

address review: default BackendProbeTimeout in Options.Default(), matching every other option

Fernando Marino4e181ea81cd5
diff --git a/internal/node/options.go b/internal/node/options.go
index 2075c7ee..730ecd1e 100644
--- a/internal/node/options.go
+++ b/internal/node/options.go
@@ -142,6 +142,9 @@ func (o *Options) Default() {
if o.NodeConfig == nil {
o.NodeConfig = &NodeConfigComplete{}
}
+ if o.BackendProbeTimeout <= 0 {
+ o.BackendProbeTimeout = defaultDHTProbeTimeout
+ }
}
// Validate verifies that the required options are provided and valid.