aboutsummaryrefslogtreecommitdiff
path: root/src/dht/test_dht_twopeer.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2011-02-02 11:54:21 +0000
committerNathan S. Evans <evans@in.tum.de>2011-02-02 11:54:21 +0000
commit0aa66524bd2ef85668ba8de14792eb39480b59ba (patch)
treec84691a6fad3cbdbcc963e6194ba2b49971963a3 /src/dht/test_dht_twopeer.c
parent3b3eb36e3a01c7046fe4c9a3c4bb7834d83442d6 (diff)
downloadgnunet-0aa66524bd2ef85668ba8de14792eb39480b59ba.tar.gz
gnunet-0aa66524bd2ef85668ba8de14792eb39480b59ba.zip
path tracking commit, hopefully a fix for dht_api connect bug, needs tested
Diffstat (limited to 'src/dht/test_dht_twopeer.c')
-rw-r--r--src/dht/test_dht_twopeer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dht/test_dht_twopeer.c b/src/dht/test_dht_twopeer.c
index d5923dc11..aab3a1231 100644
--- a/src/dht/test_dht_twopeer.c
+++ b/src/dht/test_dht_twopeer.c
@@ -220,7 +220,8 @@ get_stop_finished (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc)
220 &stop_retry_get, get_context); 220 &stop_retry_get, get_context);
221 get_context->get_handle = GNUNET_DHT_get_start(get_context->dht_handle, 221 get_context->get_handle = GNUNET_DHT_get_start(get_context->dht_handle,
222 GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 5), 222 GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 5),
223 0 /* FIXME: use real type */, &get_context->peer->hashPubKey, 223 GNUNET_BLOCK_TYPE_DHT_HELLO,
224 &get_context->peer->hashPubKey,
224 DEFAULT_GET_REPLICATION, 225 DEFAULT_GET_REPLICATION,
225 GNUNET_DHT_RO_NONE, 226 GNUNET_DHT_RO_NONE,
226 NULL, 0, 227 NULL, 0,
@@ -303,7 +304,6 @@ topology_callback (void *cls,
303 304
304 curr_get_ctx.dht_handle = peer1dht; 305 curr_get_ctx.dht_handle = peer1dht;
305 curr_get_ctx.peer = &peer2id; 306 curr_get_ctx.peer = &peer2id;
306 //GNUNET_SCHEDULER_add_now (&do_get, &curr_get_ctx);
307 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 2), &do_get, &curr_get_ctx); 307 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 2), &do_get, &curr_get_ctx);
308 } 308 }
309 else if (total_connections + failed_connections == expected_connections) 309 else if (total_connections + failed_connections == expected_connections)