diff options
Diffstat (limited to 'src/ats/gnunet-service-ats_plugins.c')
-rw-r--r-- | src/ats/gnunet-service-ats_plugins.c | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/src/ats/gnunet-service-ats_plugins.c b/src/ats/gnunet-service-ats_plugins.c index 712f927b5..131d8d634 100644 --- a/src/ats/gnunet-service-ats_plugins.c +++ b/src/ats/gnunet-service-ats_plugins.c | |||
@@ -246,11 +246,11 @@ bandwidth_changed_cb (void *cls, | |||
246 | (diff_in < htonl(GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT.value__)) ) | 246 | (diff_in < htonl(GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT.value__)) ) |
247 | return; | 247 | return; |
248 | 248 | ||
249 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, | 249 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
250 | "Sending bandwidth update for peer `%s': %u/%u\n", | 250 | "Sending bandwidth update for peer `%s': %u/%u\n", |
251 | GNUNET_i2s (&address->peer), | 251 | GNUNET_i2s (&address->peer), |
252 | address->assigned_bw_out, | 252 | address->assigned_bw_out, |
253 | address->assigned_bw_out); | 253 | address->assigned_bw_out); |
254 | 254 | ||
255 | /* *Notify scheduling clients about suggestion */ | 255 | /* *Notify scheduling clients about suggestion */ |
256 | GAS_scheduling_transmit_address_suggestion (&address->peer, | 256 | GAS_scheduling_transmit_address_suggestion (&address->peer, |
@@ -555,24 +555,7 @@ GAS_plugin_solver_unlock () | |||
555 | void | 555 | void |
556 | GAS_plugin_request_connect_start (const struct GNUNET_PeerIdentity *pid) | 556 | GAS_plugin_request_connect_start (const struct GNUNET_PeerIdentity *pid) |
557 | { | 557 | { |
558 | const struct ATS_Address *aa; | 558 | sf->s_get (sf->cls, pid); |
559 | |||
560 | aa = sf->s_get (sf->cls, pid); | ||
561 | if (NULL == aa) | ||
562 | { | ||
563 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | ||
564 | "Cannot suggest address for peer `%s'\n", | ||
565 | GNUNET_i2s (pid)); | ||
566 | return; | ||
567 | } | ||
568 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, | ||
569 | "Suggesting address %p for peer `%s'\n", | ||
570 | aa, | ||
571 | GNUNET_i2s (pid)); | ||
572 | GAS_scheduling_transmit_address_suggestion (pid, | ||
573 | aa->session_id, | ||
574 | GNUNET_BANDWIDTH_value_init (aa->assigned_bw_out), | ||
575 | GNUNET_BANDWIDTH_value_init (aa->assigned_bw_in)); | ||
576 | } | 559 | } |
577 | 560 | ||
578 | 561 | ||