From 7fef1456bd44bacaf5aa927c89282a31e89bdcf7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 30 Apr 2018 10:55:26 +0200 Subject: enable more parallelism with DHT queue, but limit to 1000 entries, then kill hard --- src/util/mq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/util/mq.c') diff --git a/src/util/mq.c b/src/util/mq.c index af700836c..0f9ad9a12 100644 --- a/src/util/mq.c +++ b/src/util/mq.c @@ -578,11 +578,9 @@ void GNUNET_MQ_set_handlers_closure (struct GNUNET_MQ_Handle *mq, void *handlers_cls) { - unsigned int i; - if (NULL == mq->handlers) return; - for (i=0;NULL != mq->handlers[i].cb; i++) + for (unsigned int i=0;NULL != mq->handlers[i].cb; i++) mq->handlers[i].cls = handlers_cls; } -- cgit v1.2.3