mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 22:53:44 +01:00
refactor directories a smidgen
svn:r1371
This commit is contained in:
parent
9723061dd9
commit
ce08baba1b
@ -20,10 +20,14 @@ extern int has_fetched_directory;
|
|||||||
void directory_initiate_command(routerinfo_t *router, int command) {
|
void directory_initiate_command(routerinfo_t *router, int command) {
|
||||||
connection_t *conn;
|
connection_t *conn;
|
||||||
|
|
||||||
if (command == DIR_CONN_STATE_CONNECTING_FETCH)
|
switch(command) {
|
||||||
log_fn(LOG_DEBUG,"initiating directory fetch");
|
case DIR_CONN_STATE_CONNECTING_FETCH:
|
||||||
else
|
log_fn(LOG_DEBUG,"initiating directory fetch");
|
||||||
log_fn(LOG_DEBUG,"initiating directory upload");
|
break;
|
||||||
|
case DIR_CONN_STATE_CONNECTING_UPLOAD:
|
||||||
|
log_fn(LOG_DEBUG,"initiating directory upload");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (!router) { /* i guess they didn't have one in mind for me to use */
|
if (!router) { /* i guess they didn't have one in mind for me to use */
|
||||||
log_fn(LOG_WARN,"No running dirservers known. Not trying.");
|
log_fn(LOG_WARN,"No running dirservers known. Not trying.");
|
||||||
|
Loading…
Reference in New Issue
Block a user