gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r33641 - gnunet/src/peerinfo-tool


From: gnunet
Subject: [GNUnet-SVN] r33641 - gnunet/src/peerinfo-tool
Date: Wed, 11 Jun 2014 11:42:14 +0200

Author: grothoff
Date: 2014-06-11 11:42:14 +0200 (Wed, 11 Jun 2014)
New Revision: 33641

Modified:
   gnunet/src/peerinfo-tool/gnunet-peerinfo.c
Log:
-cleanup

Modified: gnunet/src/peerinfo-tool/gnunet-peerinfo.c
===================================================================
--- gnunet/src/peerinfo-tool/gnunet-peerinfo.c  2014-06-11 09:41:50 UTC (rev 
33640)
+++ gnunet/src/peerinfo-tool/gnunet-peerinfo.c  2014-06-11 09:42:14 UTC (rev 
33641)
@@ -334,8 +334,7 @@
   ar->atsc = GNUNET_TRANSPORT_address_to_string (cfg,
                                                  address,
                                                  no_resolve,
-                                                GNUNET_TIME_relative_multiply
-                                                (GNUNET_TIME_UNIT_SECONDS, 10),
+                                                TIMEOUT,
                                                 &process_resolved_address, ar);
   return GNUNET_OK;
 }
@@ -588,10 +587,10 @@
 {
   struct GNUNET_HELLO_Message *hello = NULL;
 
-  int ret = GNUNET_HELLO_parse_uri(put_uri,
-                                   &my_peer_identity.public_key,
-                                  &hello,
-                                   &GPI_plugins_find);
+  int ret = GNUNET_HELLO_parse_uri (put_uri,
+                                    &my_peer_identity.public_key,
+                                    &hello,
+                                    &GPI_plugins_find);
 
   if (NULL != hello)
   {
@@ -604,10 +603,6 @@
       tt = GNUNET_SCHEDULER_add_now (&state_machine, NULL);
     GNUNET_free (hello);
   }
-
-  /* wait 1s to give peerinfo operation a chance to succeed */
-  /* FIXME: current peerinfo API sucks to require this; not to mention
-     that we get no feedback to determine if the operation actually succeeded 
*/
   return ret;
 }
 




reply via email to

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