aboutsummaryrefslogtreecommitdiff
path: root/src/datacache/plugin_datacache_template.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-06-03 15:07:09 +0200
committerChristian Grothoff <christian@grothoff.org>2018-06-03 15:07:09 +0200
commit18a1d4ec5085690d16345a52f3e75d059c834195 (patch)
treeeddcbab91006a80cfa604c802bb1fccdaae1103d /src/datacache/plugin_datacache_template.c
parent2e619a454b7c78aa5f592debd6c8a31e7d7c1143 (diff)
downloadgnunet-18a1d4ec5085690d16345a52f3e75d059c834195.tar.gz
gnunet-18a1d4ec5085690d16345a52f3e75d059c834195.zip
proper datacache expiration by proximity first
Diffstat (limited to 'src/datacache/plugin_datacache_template.c')
-rw-r--r--src/datacache/plugin_datacache_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datacache/plugin_datacache_template.c b/src/datacache/plugin_datacache_template.c
index 28bcbcd26..1064d3125 100644
--- a/src/datacache/plugin_datacache_template.c
+++ b/src/datacache/plugin_datacache_template.c
@@ -45,7 +45,7 @@ struct Plugin
45 * 45 *
46 * @param cls closure (our `struct Plugin`) 46 * @param cls closure (our `struct Plugin`)
47 * @param key key to store @a data under 47 * @param key key to store @a data under
48 * @param am_closest are we the closest peer? 48 * @param xor_distance distance of @a key to our PID
49 * @param size number of bytes in @a data 49 * @param size number of bytes in @a data
50 * @param data data to store 50 * @param data data to store
51 * @param type type of the value 51 * @param type type of the value
@@ -57,7 +57,7 @@ struct Plugin
57static ssize_t 57static ssize_t
58template_plugin_put (void *cls, 58template_plugin_put (void *cls,
59 const struct GNUNET_HashCode *key, 59 const struct GNUNET_HashCode *key,
60 int am_closest, 60 uint32_t xor_distance,
61 size_t size, 61 size_t size,
62 const char *data, 62 const char *data,
63 enum GNUNET_BLOCK_Type type, 63 enum GNUNET_BLOCK_Type type,