Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Mar 21, 2024
1 parent 3282859 commit 19314c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow/connectors/kafka/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (c *KafkaConnector) SyncFlowCleanup(ctx context.Context, jobName string) er
return c.pgMetadata.DropMetadata(ctx, jobName)
}

func loadScript(ctx context.Context, script string, print lua.LGFunction) (*lua.LState, error) {
func loadScript(ctx context.Context, script string, printfn lua.LGFunction) (*lua.LState, error) {
if script == "" {
return nil, errors.New("kafka mirror must have script")
}
Expand All @@ -185,7 +185,7 @@ func loadScript(ctx context.Context, script string, print lua.LGFunction) (*lua.
}
ls.PreloadModule("flatbuffers", gluaflatbuffers.Loader)
pua.RegisterTypes(ls)
ls.Env.RawSetString("print", ls.NewFunction(print))
ls.Env.RawSetString("print", ls.NewFunction(printfn))
err := ls.GPCall(pua.LoadPeerdbScript, lua.LString(script))
if err != nil {
return nil, fmt.Errorf("error loading script %s: %w", script, err)
Expand Down

0 comments on commit 19314c0

Please sign in to comment.