Skip to content

Commit

Permalink
linter, errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hariso committed Aug 6, 2024
1 parent 23815f1 commit 4725d17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func ExampleEncodeProcessor_autoRegister() {

client, err := schemaregistry.NewClient(log.Nop(), sr.URLs(url))
if err != nil {
panic(err)
panic(fmt.Sprintf("failed to create schema registry client: %v", err))
}

p := NewEncodeProcessor(log.Nop()).(*encodeProcessor)
Expand Down Expand Up @@ -121,7 +121,7 @@ func ExampleEncodeProcessor_preRegistered() {

client, err := schemaregistry.NewClient(log.Nop(), sr.URLs(url))
if err != nil {
panic(err)
panic(fmt.Sprintf("failed to create schema registry client: %v", err))
}

_, err = client.CreateSchema(context.Background(), "example-preRegistered", sr.Schema{
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/processor/builtin/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package builtin

import (
"context"
"runtime/debug"

sdk "github.com/conduitio/conduit-processor-sdk"
"github.com/conduitio/conduit-processor-sdk/pprocutils"
Expand All @@ -34,7 +35,6 @@ import (
"github.com/conduitio/conduit/pkg/plugin/processor/builtin/impl/webhook"
"github.com/conduitio/conduit/pkg/plugin/processor/procutils"
"github.com/conduitio/conduit/pkg/schemaregistry"
"runtime/debug"
)

var DefaultBuiltinProcessors = map[string]ProcessorPluginConstructor{
Expand Down

0 comments on commit 4725d17

Please sign in to comment.