gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r34801 - gnunet/src/rps


From: gnunet
Subject: [GNUnet-SVN] r34801 - gnunet/src/rps
Date: Sat, 27 Dec 2014 13:31:53 +0100

Author: ch3
Date: 2014-12-27 13:31:53 +0100 (Sat, 27 Dec 2014)
New Revision: 34801

Modified:
   gnunet/src/rps/gnunet-service-rps.c
Log:
fixed place of resizing gossip_list

Modified: gnunet/src/rps/gnunet-service-rps.c
===================================================================
--- gnunet/src/rps/gnunet-service-rps.c 2014-12-27 12:31:51 UTC (rev 34800)
+++ gnunet/src/rps/gnunet-service-rps.c 2014-12-27 12:31:53 UTC (rev 34801)
@@ -1090,13 +1090,6 @@
   // TODO cleanup peer_map
 
 
-  /* If the NSE has changed adapt the lists accordingly */
-  if ( sampler_list->size != est_size )
-    SAMPLER_samplers_resize(sampler_list, est_size, own_identity);
-
-  GNUNET_array_grow(gossip_list, gossip_list_size, est_size);
-
-
   /* Would it make sense to have one shuffeled gossip list and then
    * to send PUSHes to first alpha peers, PULL requests to next beta peers and
    * use the rest to update sampler?
@@ -1146,6 +1139,13 @@
   }
 
 
+  /* If the NSE has changed adapt the lists accordingly */
+  if ( sampler_list->size != est_size )
+    SAMPLER_samplers_resize(sampler_list, est_size, own_identity);
+
+  GNUNET_array_grow(gossip_list, gossip_list_size, est_size);
+
+
   /* Update gossip list */
   uint64_t r_index;
 
@@ -1351,7 +1351,7 @@
                         uint32_t port,
                         enum GNUNET_CADET_ChannelOption options)
 {
-  LOG(GNUNET_ERROR_TYPE_DEBUG, "New channel was established to us.\n");
+  LOG(GNUNET_ERROR_TYPE_DEBUG, "New channel was established to us (Peer 
%s).\n", GNUNET_i2s(initiator));
 
   GNUNET_assert( NULL != channel );
 




reply via email to

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