diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-04-26 16:56:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-04-26 16:56:00 +0000 |
commit | 4757258de33285fed2aa318c374dcdbf586c29f0 (patch) | |
tree | 283fa337cdaa54fbb3bbf08c937fdb6467c2b5d1 /src/gns | |
parent | 506d42b2ba6eb104e64fd0c8889ea7233a9b96b3 (diff) | |
download | gnunet-4757258de33285fed2aa318c374dcdbf586c29f0.tar.gz gnunet-4757258de33285fed2aa318c374dcdbf586c29f0.zip |
-fixing #2277
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-service-gns.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c index ac1067c0e..c81d9d808 100644 --- a/src/gns/gnunet-service-gns.c +++ b/src/gns/gnunet-service-gns.c | |||
@@ -212,10 +212,14 @@ update_zone_dht_next(void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
212 | * Continuation for DHT put | 212 | * Continuation for DHT put |
213 | * | 213 | * |
214 | * @param cls closure | 214 | * @param cls closure |
215 | * @param tc task context | 215 | * @param success GNUNET_OK if the PUT was transmitted, |
216 | * GNUNET_NO on timeout, | ||
217 | * GNUNET_SYSERR on disconnect from service | ||
218 | * after the PUT message was transmitted | ||
219 | * (so we don't know if it was received or not) | ||
216 | */ | 220 | */ |
217 | static void | 221 | static void |
218 | record_dht_put(void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 222 | record_dht_put(void *cls, int success) |
219 | { | 223 | { |
220 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "put request transmitted\n"); | 224 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "put request transmitted\n"); |
221 | } | 225 | } |
@@ -334,7 +338,7 @@ put_gns_record(void *cls, | |||
334 | 338 | ||
335 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, | 339 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, |
336 | "DHT req to %d\n", DHT_OPERATION_TIMEOUT.rel_value); | 340 | "DHT req to %d\n", DHT_OPERATION_TIMEOUT.rel_value); |
337 | 341 | /* FIXME: keep return value to possibly cancel? */ | |
338 | GNUNET_DHT_put (dht_handle, &xor_hash, | 342 | GNUNET_DHT_put (dht_handle, &xor_hash, |
339 | DHT_GNS_REPLICATION_LEVEL, | 343 | DHT_GNS_REPLICATION_LEVEL, |
340 | GNUNET_DHT_RO_NONE, | 344 | GNUNET_DHT_RO_NONE, |