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) |
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 aedb39159d..fd1528a1de 100644 --- a/src/namestore/plugin_rest_namestore.c +++ b/src/namestore/plugin_rest_namestore.c @@ -452,7 +452,8 @@ namestore_list_response (void *cls, "%s does not match %s\n", rname, handle->name); - GNUNET_NAMESTORE_zone_iterator_next (handle->list_it); + GNUNET_NAMESTORE_zone_iterator_next (handle->list_it, + 1); return; } @@ -483,7 +484,8 @@ namestore_list_response (void *cls, } json_decref (result_array); - GNUNET_NAMESTORE_zone_iterator_next (handle->list_it); + GNUNET_NAMESTORE_zone_iterator_next (handle->list_it, + 1); } |