diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-04 07:22:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-04 07:22:37 +0000 |
commit | 900b48c3aa80d693fd79b6ef9a3dce323ac61a57 (patch) | |
tree | 13ec8dc7d0081ba459631196613a93142814941d /src/namestore/namestore_api.c | |
parent | 4c297e9d83087fef43bb3c6cb89b8787b5d7bdc9 (diff) | |
download | gnunet-900b48c3aa80d693fd79b6ef9a3dce323ac61a57.tar.gz gnunet-900b48c3aa80d693fd79b6ef9a3dce323ac61a57.zip |
-do set expiration time when storing records, works better that way...
Diffstat (limited to 'src/namestore/namestore_api.c')
-rw-r--r-- | src/namestore/namestore_api.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c index 1832d83f7..a1d17835f 100644 --- a/src/namestore/namestore_api.c +++ b/src/namestore/namestore_api.c | |||
@@ -1056,9 +1056,10 @@ GNUNET_NAMESTORE_block_cache (struct GNUNET_NAMESTORE_Handle *h, | |||
1056 | msg->derived_key = block->derived_key; | 1056 | msg->derived_key = block->derived_key; |
1057 | memcpy (&msg[1], &block[1], blen); | 1057 | memcpy (&msg[1], &block[1], blen); |
1058 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 1058 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
1059 | "Sending `%s' message with size %u\n", | 1059 | "Sending `%s' message with size %u and expiration %s\n", |
1060 | "NAMESTORE_BLOCK_CACHE", | 1060 | "NAMESTORE_BLOCK_CACHE", |
1061 | (unsigned int) msg_size); | 1061 | (unsigned int) msg_size, |
1062 | GNUNET_STRINGS_absolute_time_to_string (GNUNET_TIME_absolute_ntoh (msg->expire))); | ||
1062 | GNUNET_CONTAINER_DLL_insert_tail (h->pending_head, h->pending_tail, pe); | 1063 | GNUNET_CONTAINER_DLL_insert_tail (h->pending_head, h->pending_tail, pe); |
1063 | do_transmit (h); | 1064 | do_transmit (h); |
1064 | return qe; | 1065 | return qe; |