diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-09-19 16:14:28 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-08 16:47:57 -0500 |
commit | a20c8a81d717852ad3a2bf261ec68efba692f0d7 (patch) | |
tree | 32fd49d285aa8b1ac794dcebe84b41a800fd524c /src/or/main.c | |
parent | bfff729728e04d404533be7b86426833ca8d4a32 (diff) | |
download | tor-a20c8a81d717852ad3a2bf261ec68efba692f0d7.tar.gz tor-a20c8a81d717852ad3a2bf261ec68efba692f0d7.zip |
Migrate main data loop for set_bad_connections to use channel structures
This was the last user of our or_connections-by-ID map. It also had
a tendency to be O(N) in cases that only had to be O(1).
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index c10f62724a..30adb16f4e 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1426,7 +1426,7 @@ run_scheduled_events(time_t now) } /* 5. We do housekeeping for each connection... */ - connection_or_set_bad_connections(NULL, 0); + channel_update_bad_for_new_circs(NULL, 0); int i; for (i=0;i<smartlist_len(connection_array);i++) { run_connection_housekeeping(i, now); |