[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r26092 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r26092 - gnunet/src/mesh |
Date: |
Thu, 14 Feb 2013 01:38:11 +0100 |
Author: bartpolot
Date: 2013-02-14 01:38:11 +0100 (Thu, 14 Feb 2013)
New Revision: 26092
Modified:
gnunet/src/mesh/gnunet-service-mesh.c
Log:
- not needed size of t->peers should suffice
Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c 2013-02-13 12:18:32 UTC (rev
26091)
+++ gnunet/src/mesh/gnunet-service-mesh.c 2013-02-14 00:38:11 UTC (rev
26092)
@@ -440,10 +440,10 @@
*/
uint32_t last_fwd_ack;
- /**
- * BCK ACK value received from the hop towards the owner of the tunnel,
- * (previous node / owner): up to what message PID can we sent back to him.
- */
+ /**
+ * BCK ACK value received from the hop towards the owner of the tunnel,
+ * (previous node / owner): up to what message PID can we sent back to him.
+ */
uint32_t bck_ack;
/**
@@ -488,11 +488,6 @@
unsigned int peers_ready;
/**
- * Number of peers that have been added to the tunnel
- */
- unsigned int peers_total;
-
- /**
* Client owner of the tunnel, if any
*/
struct MeshClient *owner;
@@ -3035,7 +3030,6 @@
if (GNUNET_NO ==
GNUNET_CONTAINER_multihashmap_contains (t->peers, &id.hashPubKey))
{
- t->peers_total++;
GNUNET_array_append (peer->tunnels, peer->ntunnels, t);
GNUNET_assert (GNUNET_OK ==
GNUNET_CONTAINER_multihashmap_put (t->peers, &id.hashPubKey,
@@ -7915,8 +7909,7 @@
*resp = *msg;
resp->npeers = 0;
ctx.msg = resp;
- ctx.lookup = GNUNET_CONTAINER_multihashmap_create (4 * t->peers_total,
- GNUNET_YES);
+ ctx.lookup = GNUNET_CONTAINER_multihashmap_create (32, GNUNET_YES);
ctx.c = c;
/* Collect and send information */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r26092 - gnunet/src/mesh,
gnunet <=