[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: Peerstore: We replace existing hellos. O
From: |
gnunet |
Subject: |
[gnunet] branch master updated: Peerstore: We replace existing hellos. Only the origin peer merges hellos. |
Date: |
Mon, 13 Nov 2023 10:58:23 +0100 |
This is an automated email from the git hooks/post-receive script.
t3sserakt pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 4e77b1098 Peerstore: We replace existing hellos. Only the origin peer
merges hellos.
4e77b1098 is described below
commit 4e77b10982effa677c8da5a8aba888f87ad4f336
Author: t3sserakt <t3ss@posteo.de>
AuthorDate: Mon Nov 13 10:58:12 2023 +0100
Peerstore: We replace existing hellos. Only the origin peer merges hellos.
---
src/service/peerstore/peerstore_api.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/service/peerstore/peerstore_api.c
b/src/service/peerstore/peerstore_api.c
index 188ab788b..9014193c7 100644
--- a/src/service/peerstore/peerstore_api.c
+++ b/src/service/peerstore/peerstore_api.c
@@ -1207,7 +1207,7 @@ store_hello (struct GNUNET_PEERSTORE_StoreHelloContext
*huc,
hello,
ntohs (hello->size),
hello_exp,
- GNUNET_PEERSTORE_STOREOPTION_MULTIPLE,
+ GNUNET_PEERSTORE_STOREOPTION_REPLACE,
merge_success,
shu_cls);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -1220,7 +1220,8 @@ store_hello (struct GNUNET_PEERSTORE_StoreHelloContext
*huc,
shu_cls->sc = sc;
}
-
+//TODO Find a better name for the function. We do not merge, but replace, if
there is a storing process
+// during another store process with a newer hello.
static void
merge_uri (void *cls,
const struct GNUNET_PEERSTORE_Record *record,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: Peerstore: We replace existing hellos. Only the origin peer merges hellos.,
gnunet <=