Commit df5ccb09 authored by juga's avatar juga
Browse files

scanner: add docstring to measure_relay

Closes: #29149. Bugfix v0.1.0.
parent 9c3e5f31
......@@ -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'))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment