rps service: log view size on history update, too
authorJulius Bünger <buenger@mytum.de>
Wed, 4 Apr 2018 06:07:50 +0000 (08:07 +0200)
committerJulius Bünger <buenger@mytum.de>
Wed, 4 Apr 2018 06:46:59 +0000 (08:46 +0200)
src/rps/gnunet-service-rps.c

index 30d677849181c8d32493b0b4805645386c618365..5b7f78b3fe5f36b4d8663042a4509e9ddf3b478a 100644 (file)
@@ -2269,6 +2269,12 @@ insert_in_view (const struct GNUNET_PeerIdentity *peer)
   return View_put (peer);
 }
 
+/**
+ * @brief sends updates to clients that are interested
+ */
+static void
+clients_notify_view_update (void);
+
 /**
  * Put random peer from sampler into the view as history update.
  */
@@ -2279,6 +2285,7 @@ hist_update (void *cls,
 {
   unsigned int i;
 
+  clients_notify_view_update();
   for (i = 0; i < num_peers; i++)
   {
     (void) insert_in_view (&ids[i]);