Skip to content

Commit

Permalink
Replacing ::metadata with ::getByVersion in content converters
Browse files Browse the repository at this point in the history
  • Loading branch information
this-Aditya committed Dec 6, 2024
1 parent 476f38d commit 4148a82
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ class AvroContentConverter(

return coroutineScope {
val keySchema = async {
schemaRetriever.metadata(
schemaRetriever.getByVersion(
topic = value.topic.name,
ofValue = false,
schema = value.topic.keySchema,
version = -1,
)
}
val valueSchema = async {
schemaRetriever.metadata(
schemaRetriever.getByVersion(
topic = value.topic.name,
ofValue = true,
schema = value.topic.valueSchema,
version = -1,
)
}
val maker = if (binary) {
Expand Down

0 comments on commit 4148a82

Please sign in to comment.