gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: distance field in queue is


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: distance field in queue is dead
Date: Sun, 21 Apr 2019 11:39:40 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 94f367a64 distance field in queue is dead
94f367a64 is described below

commit 94f367a644545eb7d4ea51902f0c7ed9e2d45193
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Apr 21 11:39:29 2019 +0200

    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;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]