diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-07 19:38:21 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-11 11:43:26 -0400 |
commit | 7e3005af30b94fd1925b0be475d72875272b9044 (patch) | |
tree | bb8ee6cbd351b3ffaa3d735908e7bfeb9e06f324 /src/test/test_routerlist.c | |
parent | abaca3fc8c6bc54408084e7514468fa2cd7b3edf (diff) | |
download | tor-7e3005af30b94fd1925b0be475d72875272b9044.tar.gz tor-7e3005af30b94fd1925b0be475d72875272b9044.zip |
Replace "read consensus from disk" with "map consensus from disk".
Implements 27244, and should save a bunch of RAM on clients.
Diffstat (limited to 'src/test/test_routerlist.c')
-rw-r--r-- | src/test/test_routerlist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_routerlist.c b/src/test/test_routerlist.c index 7fe4c15b18..bf76570b3f 100644 --- a/src/test/test_routerlist.c +++ b/src/test/test_routerlist.c @@ -659,7 +659,8 @@ test_skew_common(void *arg, time_t now, unsigned long *offset) MOCK(clock_skew_warning, mock_clock_skew_warning); /* Caller will call teardown_capture_of_logs() */ setup_capture_of_logs(LOG_WARN); - retval = networkstatus_set_current_consensus(consensus, "microdesc", 0, + retval = networkstatus_set_current_consensus(consensus, strlen(consensus), + "microdesc", 0, NULL); done: |