From 94f367a644545eb7d4ea51902f0c7ed9e2d45193 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 21 Apr 2019 11:39:29 +0200 Subject: distance field in queue is dead --- src/transport/gnunet-service-tng.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c index b2f0838bf..62e9c0d8e 100644 --- a/src/transport/gnunet-service-tng.c +++ b/src/transport/gnunet-service-tng.c @@ -1224,12 +1224,6 @@ struct Queue */ uint32_t mtu; - /** - * Distance to the target of this queue. - * FIXME: needed? DV is done differently these days... - */ - uint32_t distance; - /** * Messages pending. */ @@ -4695,7 +4689,7 @@ activate_core_visible_dv_path (struct DistanceVectorHop *hop) return; /* no need to tell core, connection already up! */ cores_send_connect_info (&dv->target, (NULL != n) - ? GNUNET_BANDWDITH_value_sum (n->quota_out, + ? GNUNET_BANDWIDTH_value_sum (n->quota_out, dv->quota_out) : dv->quota_out); } @@ -6638,8 +6632,6 @@ check_connection_quality (void *cls, do_inc = GNUNET_NO; for (struct Queue *q = n->queue_head; NULL != q; q = q->next_neighbour) { - if (0 != q->distance) - continue; /* DV does not count */ ctx->num_queues++; if (0 == ctx->k--) ctx->q = q; -- cgit v1.2.3