Commit df5ccb09 authored by juga's avatar juga
Browse files

scanner: add docstring to measure_relay

Closes: #29149. Bugfix v0.1.0.
parent 9c3e5f31
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -231,6 +231,13 @@ def _pick_ideal_second_hop(relay, dest, rl, cont, is_exit):


def measure_relay(args, conf, destinations, cb, rl, relay):
    """
    Select a Web server, a relay to build the circuit,
    build the circuit and measure the bandwidth of the given relay.

    :return Result: a measurement Result object

    """
    log.debug('Measuring %s %s', relay.nickname, relay.fingerprint)
    s = requests_utils.make_session(
        cb.controller, conf.getfloat('general', 'http_timeout'))