lib/freno/throttler/mapper.rb in freno-client-0.8.1 vs lib/freno/throttler/mapper.rb in freno-client-0.8.2

- old
+ new

@@ -1,8 +1,9 @@ +# frozen_string_literal: true + module Freno class Throttler - # A Mapper is any object that responds to `call`, by receiving a context # object and returning a list of strings, each of which corresponds to the # store_name that will be checked in freno. # # See https://github.com/github/freno/blob/master/doc/http.md#client-requests @@ -11,10 +12,9 @@ # As an example we could use a mapper that will receive as a context a set # of [table, shard_id] tuples, and could return the list of all the stores # where that shards exist. # module Mapper - # The Identity mapper is the one used by default in the Throttler. # # It works by informing the throttler to check exact same stores that it # receives as context, without any translation. #