aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/internal/vespa/target_custom.go
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2023-08-18 10:25:21 +0200
committerMartin Polden <mpolden@mpolden.no>2023-08-21 14:27:17 +0200
commit7b4f133606eebb8d10100bb72de8df1e2a98dd17 (patch)
treeddb54e9f6aca62fd4ed16b2b08de3d660178f914 /client/go/internal/vespa/target_custom.go
parent8fbbe2b40cd7e4e00d9694e31534ea51dd47f264 (diff)
Wait for deploy service
Diffstat (limited to 'client/go/internal/vespa/target_custom.go')
-rw-r--r--client/go/internal/vespa/target_custom.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/go/internal/vespa/target_custom.go b/client/go/internal/vespa/target_custom.go
index e6c13502430..a49654e3dff 100644
--- a/client/go/internal/vespa/target_custom.go
+++ b/client/go/internal/vespa/target_custom.go
@@ -35,24 +35,24 @@ type serviceInfo struct {
}
// LocalTarget creates a target for a Vespa platform running locally.
-func LocalTarget(httpClient util.HTTPClient, tlsOptions TLSOptions) Target {
+func LocalTarget(httpClient util.HTTPClient, tlsOptions TLSOptions, retryInterval time.Duration) Target {
return &customTarget{
targetType: TargetLocal,
baseURL: "http://127.0.0.1",
httpClient: httpClient,
tlsOptions: tlsOptions,
- retryInterval: defaultRetryInterval,
+ retryInterval: retryInterval,
}
}
// CustomTarget creates a Target for a Vespa platform running at baseURL.
-func CustomTarget(httpClient util.HTTPClient, baseURL string, tlsOptions TLSOptions) Target {
+func CustomTarget(httpClient util.HTTPClient, baseURL string, tlsOptions TLSOptions, retryInterval time.Duration) Target {
return &customTarget{
targetType: TargetCustom,
baseURL: baseURL,
httpClient: httpClient,
tlsOptions: tlsOptions,
- retryInterval: defaultRetryInterval,
+ retryInterval: retryInterval,
}
}