From 6267301ba1e100e901af3ce1a15f801f7529e884 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 11 Oct 2011 14:19:56 +0000 Subject: [PATCH] --- .../test_transport_api_unreliability.c | 15 --------------- .../test_transport_api_unreliability_constant.c | 17 +---------------- 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/src/transport/test_transport_api_unreliability.c b/src/transport/test_transport_api_unreliability.c index a18a809c9..7a08d590d 100644 --- a/src/transport/test_transport_api_unreliability.c +++ b/src/transport/test_transport_api_unreliability.c @@ -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)); - } } diff --git a/src/transport/test_transport_api_unreliability_constant.c b/src/transport/test_transport_api_unreliability_constant.c index a74e6d2eb..c6062c96a 100644 --- a/src/transport/test_transport_api_unreliability_constant.c +++ b/src/transport/test_transport_api_unreliability_constant.c @@ -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)); - } } -- 2.25.1