aboutsummaryrefslogtreecommitdiff
path: root/src/dht/test_dht_twopeer_get_put.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/test_dht_twopeer_get_put.c')
-rw-r--r--src/dht/test_dht_twopeer_get_put.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/dht/test_dht_twopeer_get_put.c b/src/dht/test_dht_twopeer_get_put.c
index 2a79c9ffb..d0da778ea 100644
--- a/src/dht/test_dht_twopeer_get_put.c
+++ b/src/dht/test_dht_twopeer_get_put.c
@@ -215,12 +215,11 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
215void 215void
216get_result_iterator (void *cls, struct GNUNET_TIME_Absolute exp, 216get_result_iterator (void *cls, struct GNUNET_TIME_Absolute exp,
217 const GNUNET_HashCode * key, 217 const GNUNET_HashCode * key,
218 const struct GNUNET_PeerIdentity *get_path, 218 const struct GNUNET_PeerIdentity *get_path,
219 unsigned int get_path_size, 219 unsigned int get_path_size,
220 const struct GNUNET_PeerIdentity *put_path, 220 const struct GNUNET_PeerIdentity *put_path,
221 unsigned int put_path_size, 221 unsigned int put_path_size, enum GNUNET_BLOCK_Type type,
222 enum GNUNET_BLOCK_Type type, size_t size, 222 size_t size, const void *result_data)
223 const void *result_data)
224{ 223{
225 GNUNET_HashCode original_key; /* Key data was stored data under */ 224 GNUNET_HashCode original_key; /* Key data was stored data under */
226 char original_data[4]; /* Made up data that was stored */ 225 char original_data[4]; /* Made up data that was stored */
@@ -279,8 +278,8 @@ do_get (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
279#else 278#else
280 GNUNET_BLOCK_TYPE_TEST, 279 GNUNET_BLOCK_TYPE_TEST,
281#endif 280#endif
282 &key, 1, GNUNET_DHT_RO_NONE, 281 &key, 1, GNUNET_DHT_RO_NONE, NULL, 0,
283 NULL, 0, &get_result_iterator, NULL); 282 &get_result_iterator, NULL);
284 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply 283 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
285 (GNUNET_TIME_UNIT_SECONDS, 10), &do_put, NULL); 284 (GNUNET_TIME_UNIT_SECONDS, 10), &do_put, NULL);
286} 285}
@@ -313,10 +312,9 @@ do_put (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
313 memset (data, 43, sizeof (data)); 312 memset (data, 43, sizeof (data));
314 313
315 /* Insert the data at the first peer */ 314 /* Insert the data at the first peer */
316 GNUNET_DHT_put (peer1dht, &key, 1, GNUNET_DHT_RO_NONE, 315 GNUNET_DHT_put (peer1dht, &key, 1, GNUNET_DHT_RO_NONE, GNUNET_BLOCK_TYPE_TEST,
317 GNUNET_BLOCK_TYPE_TEST, sizeof (data), data, 316 sizeof (data), data, GNUNET_TIME_UNIT_FOREVER_ABS,
318 GNUNET_TIME_UNIT_FOREVER_ABS, GNUNET_TIME_UNIT_FOREVER_REL, 317 GNUNET_TIME_UNIT_FOREVER_REL, &put_finished, NULL);
319 &put_finished, NULL);
320} 318}
321#else 319#else
322 320