diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-05-02 09:52:03 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-05-06 16:35:39 -0400 |
commit | 3c2648bbda53f74a4e960ad149600c3a2b12305c (patch) | |
tree | a0f65d1798218c3bf011017b852ebe71e0887743 /src/feature/relay/relay_sys.c | |
parent | b394b5b2af7f38a5e66c9875d3a55be5af840933 (diff) | |
download | tor-3c2648bbda53f74a4e960ad149600c3a2b12305c.tar.gz tor-3c2648bbda53f74a4e960ad149600c3a2b12305c.zip |
Move "relay" and "router" periodic callbacks out of mainloop.c
(Some of these callbacks are specific to the OR module, so now it's
time to have an or_sys and or_periodic.)
Diffstat (limited to 'src/feature/relay/relay_sys.c')
-rw-r--r-- | src/feature/relay/relay_sys.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/relay/relay_sys.c b/src/feature/relay/relay_sys.c index 4fdd3d3584..106e88b2a5 100644 --- a/src/feature/relay/relay_sys.c +++ b/src/feature/relay/relay_sys.c @@ -15,6 +15,7 @@ #include "feature/relay/dns.h" #include "feature/relay/ext_orport.h" #include "feature/relay/onion_queue.h" +#include "feature/relay/relay_periodic.h" #include "feature/relay/relay_sys.h" #include "feature/relay/routerkeys.h" #include "feature/relay/router.h" @@ -24,6 +25,7 @@ static int subsys_relay_initialize(void) { + relay_register_periodic_events(); return 0; } |