diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-11-30 03:01:16 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-11-30 03:01:16 +0000 |
commit | 3bd613b44d955f9c8585ce26400b921038d26773 (patch) | |
tree | 20202e5d821197bb28bfeca14f2538df3e62f3ae /src/or/router.c | |
parent | 6b49a93bd5d5446799ba77daa82640e87321af26 (diff) | |
download | tor-3bd613b44d955f9c8585ce26400b921038d26773.tar.gz tor-3bd613b44d955f9c8585ce26400b921038d26773.zip |
Rename connection_get_by_identity_digest to reflect that it is OR-only. Make it use a hashtable instead of a linear search.
svn:r5469
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c index ae1c602177..0fcf13737c 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -623,7 +623,7 @@ router_retry_connections(int force) if (!clique_mode(options) && !router_is_clique_mode(router)) continue; if (force || - !connection_get_by_identity_digest(router->cache_info.identity_digest)) { + !connection_or_get_by_identity_digest(router->cache_info.identity_digest)) { debug(LD_OR,"%sconnecting to %s at %s:%u.", clique_mode(options) ? "(forced) " : "", router->nickname, router->address, router->or_port); |