summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-04-21 11:39:29 +0200
committerChristian Grothoff <christian@grothoff.org>2019-04-21 11:39:29 +0200
commit94f367a644545eb7d4ea51902f0c7ed9e2d45193 (patch)
tree82c600f9c8f8139f6a30b0e6eefa54bcd375b83c /src
parent300bb8d62d412eccb1537cbdaf27b8264fa6fc19 (diff)
distance field in queue is dead
Diffstat (limited to 'src')
-rw-r--r--src/transport/gnunet-service-tng.c10
1 files changed, 1 insertions, 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
@@ -1225,12 +1225,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.
*/
uint32_t num_msg_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;