Skip to content

Commit

Permalink
Fix gRPC and Kafka module interoperability by removing the field mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Nov 14, 2022
1 parent f3c80c6 commit 0811422
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions module.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ func (*RootModule) NewModuleInstance(virtualUser modules.VU) modules.Instance {
// The SchemaRegistry is a constructor and must be called with new, e.g. new SchemaRegistry(...).
mustExport("SchemaRegistry", moduleInstance.schemaRegistryClientClass)

// This causes the struct fields to be exported to the native (camelCases) JS code.
virtualUser.Runtime().SetFieldNameMapper(goja.TagFieldNameMapper("json", true))

return moduleInstance
}

Expand Down

0 comments on commit 0811422

Please sign in to comment.