distance field in queue is dead
authorChristian Grothoff <christian@grothoff.org>
Sun, 21 Apr 2019 09:39:29 +0000 (11:39 +0200)
committerChristian Grothoff <christian@grothoff.org>
Sun, 21 Apr 2019 09:39:29 +0000 (11:39 +0200)
src/transport/gnunet-service-tng.c

index b2f0838bf7a673a1423f30bc2a26aceead527f2d..62e9c0d8edad03bb50fb607924b8f6999eed1b78 100644 (file)
@@ -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;