lib/avromatic/schema_registry_patch.rb in avromatic-0.17.1 vs lib/avromatic/schema_registry_patch.rb in avromatic-0.18.0.rc0
- old
+ new
@@ -1,7 +1,7 @@
require 'avro_turf'
-require 'avro_turf/schema_registry'
+require 'avro_turf/confluent_schema_registry'
module Avromatic
module CacheableSchemaRegistration
# Override register to first check if a schema is registered by fingerprint
def register(subject, schema)
@@ -30,6 +30,6 @@
id
end
end
end
-AvroTurf::SchemaRegistry.prepend(Avromatic::CacheableSchemaRegistration)
+AvroTurf::ConfluentSchemaRegistry.prepend(Avromatic::CacheableSchemaRegistration)