routerstatus_sl_choose_by_bandwidth(smartlist_t *sl,
                                    bandwidth_weight_rule_t rule)
{
  /* We are choosing neither exit nor guard here. Weight accordingly. */
  routerstatus_t *ret;
  if ((ret = smartlist_choose_by_bandwidth_weights(sl, rule, 1))) {
    return ret;
  } else {
    return smartlist_choose_by_bandwidth(sl, rule, 1);
  }
}
routerstatus_sl_choose_by_bandwidth(smartlist_t *sl,
                                    bandwidth_weight_rule_t rule)
{
   
  routerstatus_t *ret;
  if ((ret = smartlist_choose_by_bandwidth_weights(sl, rule, 1))) {
    return ret;
  } else {
    return smartlist_choose_by_bandwidth(sl, rule, 1);
  }
}