diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-25 16:18:31 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-25 16:18:31 +0200 |
commit | 4dc79497d7f745996068e62e973e34d220580323 (patch) | |
tree | e6d429d3cf2240ec3459f1d4533201dc40b27015 /src/namestore/plugin_rest_namestore.c | |
parent | bdbb7c684f2c9711989d2543ecc08a95be23e6c4 (diff) | |
download | gnunet-4dc79497d7f745996068e62e973e34d220580323.tar.gz gnunet-4dc79497d7f745996068e62e973e34d220580323.zip |
extend namestore API to enable faster iterations by returning more than one result at a time
Diffstat (limited to 'src/namestore/plugin_rest_namestore.c')
-rw-r--r-- | src/namestore/plugin_rest_namestore.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/namestore/plugin_rest_namestore.c b/src/namestore/plugin_rest_namestore.c index aedb39159..fd1528a1d 100644 --- a/src/namestore/plugin_rest_namestore.c +++ b/src/namestore/plugin_rest_namestore.c | |||
@@ -452,7 +452,8 @@ namestore_list_response (void *cls, | |||
452 | "%s does not match %s\n", | 452 | "%s does not match %s\n", |
453 | rname, | 453 | rname, |
454 | handle->name); | 454 | handle->name); |
455 | GNUNET_NAMESTORE_zone_iterator_next (handle->list_it); | 455 | GNUNET_NAMESTORE_zone_iterator_next (handle->list_it, |
456 | 1); | ||
456 | return; | 457 | return; |
457 | } | 458 | } |
458 | 459 | ||
@@ -483,7 +484,8 @@ namestore_list_response (void *cls, | |||
483 | } | 484 | } |
484 | 485 | ||
485 | json_decref (result_array); | 486 | json_decref (result_array); |
486 | GNUNET_NAMESTORE_zone_iterator_next (handle->list_it); | 487 | GNUNET_NAMESTORE_zone_iterator_next (handle->list_it, |
488 | 1); | ||
487 | } | 489 | } |
488 | 490 | ||
489 | 491 | ||