anchor.diff:          undefined -> Default;
           Name      ->
               case rabbit_runtime_parameters:value(
  -                   vhos2t(X), Comp, Name) of
  +                   vhost(X), Comp, Name) of
                   not_found -> Default;
                   Value     -> pget(Param, Value, Default)
               end
  
positive.code: routing_key(X) ->
      get_parameter(<<"routing-key">>, X, ?DEFAULT_RK).
  
  get_policy(X) ->
      rabbit_policy:get(<<"sharding-definition">>, X).
  
  exchange_bin(#resource{name = XBin}) -> XBin.
  
  a2b(A) -> list_to_binary(atom_to_list(A)).
  
  
negative.code: sharded_exchanges(VHost) ->
      [X || X <- find_exchanges(VHost), shard(X)].
  
  get_policy(X) ->
      rabbit_policy:get(<<"sharding-definition">>, X).
  
  shards_per_node(X) ->
      get_parameter(<<"shards-per-node">>, X, ?DEFAULT_SHARDS_NUM).
  