lib/client.js
function encodeRoutingKey(fromUser) {
    const encoder = self._getEncoder();
    try {
      if (fromUser) {
        encoder.setRoutingKeyFromUser(params, execOptions);
      } else {
        encoder.setRoutingKeyFromMeta(meta, params, execOptions);
      }
    }
    catch (err) {
      return callback(err);
    }
    callback();
  }
function encodeRoutingKey(fromUser) {
    const encoder = self._getEncoder();
    try {
      if (fromUser) {
        encoder.setRoutingKeyFromUser(params, execOptions);
      } else {
        encoder.setRoutingKeyFromMeta(meta, params, execOptions);
      }
    }
    catch (err) {
      return callback(err);
    }
    callback();
  }
Wrapper function as encoding a routing key could throw a TypeError