diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-10-07 08:25:44 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-10-07 08:25:44 +0000 |
commit | 852435ae4a803dd40b5975199c30d2819bef600c (patch) | |
tree | 9b3e59bff586ee8c917c779a35f7e04283d61ba5 /src | |
parent | 31e266e4bf4d4bc6d8783a0d8aaf2820cf835c55 (diff) | |
download | gnunet-852435ae4a803dd40b5975199c30d2819bef600c.tar.gz gnunet-852435ae4a803dd40b5975199c30d2819bef600c.zip |
typo, continuations for dht operations use continuation instead of being default scheduled (GNUNET_SCHEDULER_REASON_TIMEOUT indicates error)
Diffstat (limited to 'src')
-rw-r--r-- | src/dht/dht_api.c | 9 | ||||
-rw-r--r-- | src/dht/gnunet-service-dht.c | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c index d7c05684c..561aa0a77 100644 --- a/src/dht/dht_api.c +++ b/src/dht/dht_api.c | |||
@@ -365,9 +365,10 @@ transmit_pending (void *cls, | |||
365 | } | 365 | } |
366 | if (NULL != head->cont) | 366 | if (NULL != head->cont) |
367 | { | 367 | { |
368 | GNUNET_SCHEDULER_add_now (handle->sched, | 368 | GNUNET_SCHEDULER_add_continuation (handle->sched, |
369 | head->cont, | 369 | head->cont, |
370 | head->cont_cls); | 370 | head->cont_cls, |
371 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | ||
371 | head->cont = NULL; | 372 | head->cont = NULL; |
372 | head->cont_cls = NULL; | 373 | head->cont_cls = NULL; |
373 | } | 374 | } |
@@ -602,7 +603,7 @@ GNUNET_DHT_disconnect (struct GNUNET_DHT_Handle *handle) | |||
602 | 603 | ||
603 | 604 | ||
604 | 605 | ||
605 | /* ***** Special low-level API providing generic routeing abstraction ***** */ | 606 | /* ***** Special low-level API providing generic routing abstraction ***** */ |
606 | 607 | ||
607 | 608 | ||
608 | /** | 609 | /** |
diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index d216be67d..403f0dfcc 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c | |||
@@ -2702,7 +2702,7 @@ handle_dht_put (void *cls, | |||
2702 | * at each hop we expect to get one bit closer, and | 2702 | * at each hop we expect to get one bit closer, and |
2703 | * we have one bit per bucket, the number of buckets | 2703 | * we have one bit per bucket, the number of buckets |
2704 | * in use should be the largest number of hops for | 2704 | * in use should be the largest number of hops for |
2705 | * a sucessful message. (of course, this assumes we | 2705 | * a successful message. (of course, this assumes we |
2706 | * know all peers in the network!) | 2706 | * know all peers in the network!) |
2707 | * | 2707 | * |
2708 | * @return ballpark diameter figure | 2708 | * @return ballpark diameter figure |