We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4237db commit 4385fadCopy full SHA for 4385fad
main.go
@@ -55,13 +55,18 @@ func run(ctx context.Context, shutdown context.CancelFunc) error {
55
}
56
57
58
- client := turbopuffer.NewClient(
+ tpufOptions := []tpufOption.RequestOption{
59
tpufOption.WithAPIKey(*apiKey),
60
tpufOption.WithBaseURL(*endpoint),
61
tpufOption.WithHTTPClient(&http.Client{
62
Transport: &transport,
63
}),
64
- )
+ }
65
+ if *hostHeader != "" {
66
+ tpufOptions = append(tpufOptions, tpufOption.WithHeader("Host", *hostHeader))
67
68
+
69
+ client := turbopuffer.NewClient(tpufOptions...)
70
71
// Script should be run via a cloud VM
72
likelyCloudVM, err := likelyRunningOnCloudVM(ctx)
0 commit comments