Commit af7a4aca authored by Matt Traudt's avatar Matt Traudt
Browse files

Deduplicate a line of code that makes a copy of the list of relays

parent a377872c
......@@ -61,10 +61,8 @@ class RelayPrioritizer:
measurement.
'''
fn_tstart = Decimal(time_now())
if self.measure_authorities:
relays = copy.deepcopy(self.relay_list.relays)
else:
relays = copy.deepcopy(self.relay_list.relays)
relays = copy.deepcopy(self.relay_list.relays)
if not self.measure_authorities:
relays = [r for r in relays
if r not in self.relay_list.authorities]
rd = self.result_dump
......
Supports Markdown
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