lib/avromatic.rb in avromatic-0.4.0 vs lib/avromatic.rb in avromatic-0.5.0
- old
+ new
@@ -19,18 +19,20 @@
end
def self.build_schema_registry
raise 'Avromatic must be configured with a registry_url' unless registry_url
AvroTurf::CachedSchemaRegistry.new(
- AvroTurf::SchemaRegistry.new(registry_url, logger: logger))
+ AvroTurf::SchemaRegistry.new(registry_url, logger: logger)
+ )
end
def self.build_messaging
raise 'Avromatic must be configured with a schema_store' unless schema_store
AvroTurf::Messaging.new(
registry: schema_registry || build_schema_registry,
schema_store: schema_store,
- logger: logger)
+ logger: logger
+ )
end
def self.build_messaging!
self.messaging = build_messaging
end