Skip to content

Commit

Permalink
fixup! cloud/expv2: Retry and concurrent flush
Browse files Browse the repository at this point in the history
  • Loading branch information
codebien committed Jun 14, 2023
1 parent 71c4883 commit f19e846
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion output/cloud/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func (out *Output) startVersionedOutput() error {
case int64(apiVersion1):
out.versionedOutput, err = cloudv1.New(out.logger, out.config, out.client)
case int64(apiVersion2):
out.versionedOutput, err = cloudv2.New(out.logger, out.config)
out.versionedOutput, err = cloudv2.New(out.logger, out.config, out.client)
default:
err = fmt.Errorf("v%d is an unexpected version", out.config.APIVersion.Int64)
}
Expand Down
3 changes: 3 additions & 0 deletions output/cloud/output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ func TestOutputStartVersionedOutputV2(t *testing.T) {
},
}

o.client = cloudapi.NewClient(
nil, o.config.Token.String, o.config.Host.String, "v/tests", o.config.Timeout.TimeDuration())

err := o.startVersionedOutput()
require.NoError(t, err)

Expand Down

0 comments on commit f19e846

Please sign in to comment.