diff options
-rw-r--r-- | src/transport/test_transport_api_unreliability.c | 15 | ||||
-rw-r--r-- | src/transport/test_transport_api_unreliability_constant.c | 17 |
2 files changed, 1 insertions, 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, | |||
419 | 419 | ||
420 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' connected to us (%p)!\n", | 420 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' connected to us (%p)!\n", |
421 | GNUNET_i2s (peer), cls); | 421 | GNUNET_i2s (peer), cls); |
422 | |||
423 | if (cls == p1) | ||
424 | { | ||
425 | max_bps_p1 = 1024 * 1024 * 1024; | ||
426 | GNUNET_TRANSPORT_set_quota (p1->th, &p2->id, | ||
427 | GNUNET_BANDWIDTH_value_init (max_bps_p1), | ||
428 | GNUNET_BANDWIDTH_value_init (max_bps_p1)); | ||
429 | } | ||
430 | else if (cls == p2) | ||
431 | { | ||
432 | max_bps_p2 = 1024 * 1024 * 1024; | ||
433 | GNUNET_TRANSPORT_set_quota (p2->th, &p1->id, | ||
434 | GNUNET_BANDWIDTH_value_init (max_bps_p2), | ||
435 | GNUNET_BANDWIDTH_value_init (max_bps_p2)); | ||
436 | } | ||
437 | } | 422 | } |
438 | 423 | ||
439 | 424 | ||
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, | |||
377 | uint32_t ats_count) | 377 | uint32_t ats_count) |
378 | { | 378 | { |
379 | 379 | ||
380 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' connected to us (GNUNET_TIME_UNIT_SECONDS%p)!\n", | 380 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' connected to us (%p)!\n", |
381 | GNUNET_i2s (peer), cls); | 381 | GNUNET_i2s (peer), cls); |
382 | |||
383 | if (cls == p1) | ||
384 | { | ||
385 | max_bps_p1 = 1024 * 1024 * 1024; | ||
386 | GNUNET_TRANSPORT_set_quota (p1->th, &p2->id, | ||
387 | GNUNET_BANDWIDTH_value_init (max_bps_p1), | ||
388 | GNUNET_BANDWIDTH_value_init (max_bps_p1)); | ||
389 | } | ||
390 | else if (cls == p2) | ||
391 | { | ||
392 | max_bps_p2 = 1024 * 1024 * 1024; | ||
393 | GNUNET_TRANSPORT_set_quota (p2->th, &p1->id, | ||
394 | GNUNET_BANDWIDTH_value_init (max_bps_p2), | ||
395 | GNUNET_BANDWIDTH_value_init (max_bps_p2)); | ||
396 | } | ||
397 | } | 382 | } |
398 | 383 | ||
399 | 384 | ||