diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-07-12 12:17:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-27 16:28:59 -0400 |
commit | 0ae0b5aa4136fe6df7863c8a5b7d239d519b7393 (patch) | |
tree | b6091d0a70fcc9a03f2c0ff361e7c02ba2e7f1d7 /src/test/test_consdiffmgr.c | |
parent | bddea78dede010cdf0115265546cdca0c47d64d0 (diff) | |
download | tor-0ae0b5aa4136fe6df7863c8a5b7d239d519b7393.tar.gz tor-0ae0b5aa4136fe6df7863c8a5b7d239d519b7393.zip |
Queue consensus diffs at LOW priority.
Fixes bug 22883.
Diffstat (limited to 'src/test/test_consdiffmgr.c')
-rw-r--r-- | src/test/test_consdiffmgr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/test_consdiffmgr.c b/src/test/test_consdiffmgr.c index 746d17a038..963a6e427a 100644 --- a/src/test/test_consdiffmgr.c +++ b/src/test/test_consdiffmgr.c @@ -98,10 +98,13 @@ typedef struct fake_work_queue_ent_t { void *arg; } fake_work_queue_ent_t; static struct workqueue_entry_s * -mock_cpuworker_queue_work(enum workqueue_reply_t (*fn)(void *, void *), +mock_cpuworker_queue_work(workqueue_priority_t prio, + enum workqueue_reply_t (*fn)(void *, void *), void (*reply_fn)(void *), void *arg) { + (void) prio; + if (! fake_cpuworker_queue) fake_cpuworker_queue = smartlist_new(); |