Skip to content

Commit

Permalink
Don't log and return the error when validating input.
Browse files Browse the repository at this point in the history
  • Loading branch information
ablease committed Sep 28, 2023
1 parent e4b2672 commit 2a2d7f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion pkg/stream/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ func (e *Environment) QuerySequence(ctx context.Context, reference, stream strin

if !validateStringParameter(reference) {
lastError = fmt.Errorf("producer reference invalid: %s", reference)
logger.Error("invalid producer reference", slog.Any("error", lastError))
return uint64(0), lastError
}

Expand Down
3 changes: 0 additions & 3 deletions pkg/stream/environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,9 +672,6 @@ var _ = Describe("Environment", func() {
environment.AppendLocatorRawClient(locator2rawClient)
environment.SetBackoffPolicy(backOffPolicyFn)
environment.SetLocatorSelectSequential(true)

// have to set server version again because there's a new locator
// environment.SetServerVersion("3.11.1")
})

It("uses different locators when one fails", func() {
Expand Down

0 comments on commit 2a2d7f4

Please sign in to comment.