aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-23 00:30:36 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-23 00:30:36 +0100
commit0209b47aeddf61686fe08e946d8909860cfb161a (patch)
tree5e683a11dbb6698d97ed6363ab80fe36c3fef38b /src/include
parent020df0bf2999e990806b72356c9a477b31b0142c (diff)
downloadgnunet-0209b47aeddf61686fe08e946d8909860cfb161a.tar.gz
gnunet-0209b47aeddf61686fe08e946d8909860cfb161a.zip
-fix datacache to return 2x num_closest in both directions
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_datacache_plugin.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/include/gnunet_datacache_plugin.h b/src/include/gnunet_datacache_plugin.h
index 914aaf15c..34bf5f277 100644
--- a/src/include/gnunet_datacache_plugin.h
+++ b/src/include/gnunet_datacache_plugin.h
@@ -158,15 +158,16 @@ struct GNUNET_DATACACHE_PluginFunctions
158 158
159 159
160 /** 160 /**
161 * Iterate over the results that are "close" to a particular key in 161 * Iterate over the results that are "close" to a particular key in the
162 * the datacache. "close" is defined as numerically larger than @a 162 * datacache. "close" is defined as returning the @a num_results that are
163 * key (when interpreted as a circular address space), with small 163 * numerically closest and larger than @a key and also @a num_results that
164 * distance. 164 * are numerically lower than @a key. Thus, the maximum number of results
165 * returned is actually twice @a num_results.
165 * 166 *
166 * @param cls closure (internal context for the plugin) 167 * @param cls closure (internal context for the plugin)
167 * @param key area of the keyspace to look into 168 * @param key area of the keyspace to look into
168 * @param type desired block type for the replies 169 * @param type desired block type for the replies
169 * @param num_results number of results that should be returned to @a iter 170 * @param num_results half the number of results that should be returned to @a iter
170 * @param iter maybe NULL (to just count) 171 * @param iter maybe NULL (to just count)
171 * @param iter_cls closure for @a iter 172 * @param iter_cls closure for @a iter
172 * @return the number of results found 173 * @return the number of results found