(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 11 Oct 2011 14:19:56 +0000 (14:19 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 11 Oct 2011 14:19:56 +0000 (14:19 +0000)
src/transport/test_transport_api_unreliability.c
src/transport/test_transport_api_unreliability_constant.c

index a18a809c9a1dc7c855f8e8df11167145e8b6eeac..7a08d590df1957eba014bc1d673fdbe3ebaf6ea9 100644 (file)
@@ -419,21 +419,6 @@ notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' connected to us (%p)!\n",
               GNUNET_i2s (peer), cls);
-
-  if (cls == p1)
-  {
-    max_bps_p1 = 1024 * 1024 * 1024;
-    GNUNET_TRANSPORT_set_quota (p1->th, &p2->id,
-                                GNUNET_BANDWIDTH_value_init (max_bps_p1),
-                                GNUNET_BANDWIDTH_value_init (max_bps_p1));
-  }
-  else if (cls == p2)
-  {
-    max_bps_p2 = 1024 * 1024 * 1024;
-    GNUNET_TRANSPORT_set_quota (p2->th, &p1->id,
-                                GNUNET_BANDWIDTH_value_init (max_bps_p2),
-                                GNUNET_BANDWIDTH_value_init (max_bps_p2));
-  }
 }
 
 
index a74e6d2eb33d00a59c2d5c658e8658dee9023485..c6062c96acf420058b150e1f2a0a9dd3754ea57b 100644 (file)
@@ -377,23 +377,8 @@ notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
                 uint32_t ats_count)
 {
 
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' connected to us (GNUNET_TIME_UNIT_SECONDS%p)!\n",
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' connected to us (%p)!\n",
               GNUNET_i2s (peer), cls);
-
-  if (cls == p1)
-  {
-    max_bps_p1 = 1024 * 1024 * 1024;
-    GNUNET_TRANSPORT_set_quota (p1->th, &p2->id,
-                                GNUNET_BANDWIDTH_value_init (max_bps_p1),
-                                GNUNET_BANDWIDTH_value_init (max_bps_p1));
-  }
-  else if (cls == p2)
-  {
-    max_bps_p2 = 1024 * 1024 * 1024;
-    GNUNET_TRANSPORT_set_quota (p2->th, &p1->id,
-                                GNUNET_BANDWIDTH_value_init (max_bps_p2),
-                                GNUNET_BANDWIDTH_value_init (max_bps_p2));
-  }
 }