README.md in karafka-sidekiq-backend-1.2.0.beta1 vs README.md in karafka-sidekiq-backend-1.2.0.beta2
- old
+ new
@@ -96,15 +96,19 @@
**Warning**: if you decide to use slow interchangers, they might significantly slow down Karafka.
```ruby
class Base64Interchanger
class << self
- def load(params)
- Base64.encode64(Marshal.dump(params))
+ def load(params_batch)
+ params_batch.map do |params|
+ Base64.encode64(Marshal.dump(params))
+ end
end
- def parse(params)
- Marshal.load(Base64.decode64(params))
+ def parse(params_batch)
+ params_batch.map do |params|
+ Marshal.load(Base64.decode64(params))
+ end
end
end
end
topic :binary_video_details do