Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Mar 21, 2024
1 parent ef41e08 commit 2864ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/connectors/kafka/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ func loadScript(ctx context.Context, script string, printfn lua.LGFunction) (*lu
}

ls := lua.NewState(lua.Options{SkipOpenLibs: true})
defer ls.Close()
ls.SetContext(ctx)
for _, pair := range []struct {
n string
Expand Down Expand Up @@ -270,6 +269,7 @@ func (c *KafkaConnector) SyncRecords(ctx context.Context, req *model.SyncRecords
if err != nil {
return nil, err
}
defer ls.Close()

lfn := ls.Env.RawGetString("onRecord")
fn, ok := lfn.(*lua.LFunction)
Expand Down

0 comments on commit 2864ca5

Please sign in to comment.