Skip to content

Commit

Permalink
chore(otelbench): use localPort
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Nov 29, 2024
1 parent fdb5326 commit 29dbc7c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/otelbench/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ func newDumpCreateCommand() *cobra.Command {
RunE: func(cobraCommand *cobra.Command, _ []string) error {
g, ctx := errgroup.WithContext(cobraCommand.Context())
done := make(chan struct{})
localPort := 9000

if err := os.MkdirAll(arg.Output, 0755); err != nil {
return errors.Wrap(err, "create output directory")
Expand All @@ -52,7 +51,7 @@ func newDumpCreateCommand() *cobra.Command {
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
defer cancel()
client, err := ch.Dial(ctx, ch.Options{
Address: fmt.Sprintf("localhost:%d", localPort),
Address: fmt.Sprintf("localhost:%d", arg.LocalPort),
})
if err != nil {
return errors.Wrap(err, "dial")
Expand Down

0 comments on commit 29dbc7c

Please sign in to comment.