lib/alephant/publisher/queue/revalidate_writer.rb in alephant-publisher-queue-2.5.0 vs lib/alephant/publisher/queue/revalidate_writer.rb in alephant-publisher-queue-2.6.0
- old
+ new
@@ -70,14 +70,16 @@
Crimp.signature(http_options)
].join('/')
end
def storage_opts
- { ttl: message_content[:ttl] }
+ { ttl: message_content[:ttl] } # @TODO: What happens if this is nil?
end
def config
- @config.merge(renderer_id: message_content.fetch(:renderer_id))
+ # @TODO: This part needs refactoring
+ @config[:renderer_id] = message_content.fetch(:renderer_id)
+ @config
end
def http_data
@http_data ||= ::JSON.parse(message_content.fetch(:http_response), symbolize_names: true)
end