lib/flipper/adapters/redis.rb in flipper-redis-0.23.1 vs lib/flipper/adapters/redis.rb in flipper-redis-0.24.0

- old
+ new

@@ -123,17 +123,17 @@ end # Private: Gets a hash of fields => values for the given feature. # # Returns a Hash of fields => values. - def doc_for(feature) - @client.hgetall(feature.key) + def doc_for(feature, pipeline: @client) + pipeline.hgetall(feature.key) end def docs_for(features) - @client.pipelined do + @client.pipelined do |pipeline| features.each do |feature| - doc_for(feature) + doc_for(feature, pipeline: pipeline) end end end def result_for_feature(feature, doc)