[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: last step to new cadet api
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: last step to new cadet api |
Date: |
Sun, 12 Mar 2017 23:43:51 +0100 |
This is an automated email from the git hooks/post-receive script.
julius-buenger pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 689692223 last step to new cadet api
689692223 is described below
commit 689692223b9cfd09143cf47a8b3f05dd66fb084e
Author: Julius Bünger <address@hidden>
AuthorDate: Sun Mar 12 23:42:59 2017 +0100
last step to new cadet api
---
src/rps/gnunet-service-rps_peers.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/src/rps/gnunet-service-rps_peers.c
b/src/rps/gnunet-service-rps_peers.c
index cbe3aefa3..1679bd9f8 100644
--- a/src/rps/gnunet-service-rps_peers.c
+++ b/src/rps/gnunet-service-rps_peers.c
@@ -566,7 +566,7 @@ get_mq (const struct GNUNET_PeerIdentity *peer)
if (NULL == peer_ctx->mq)
{
(void) get_channel (peer);
- peer_ctx->mq = GNUNET_CADET_mq_create (peer_ctx->send_channel);
+ peer_ctx->mq = GNUNET_CADET_get_mq (peer_ctx->send_channel);
}
return peer_ctx->mq;
}
@@ -663,9 +663,7 @@ remove_pending_message (struct PendingMessage *pending_msg)
GNUNET_CONTAINER_DLL_remove (peer_ctx->pending_messages_head,
peer_ctx->pending_messages_tail,
pending_msg);
- /* FIXME We are not able to cancel messages as #GNUNET_CADET_mq_create ()
does
- * not set a #GNUNET_MQ_CancelImpl */
- /* GNUNET_MQ_send_cancel (peer_ctx->pending_messages_head->ev); */
+ GNUNET_MQ_send_cancel (peer_ctx->pending_messages_head->ev);
GNUNET_free (pending_msg);
}
@@ -1688,12 +1686,7 @@ Peers_get_recv_channel (const struct GNUNET_PeerIdentity
*peer)
{
struct PeerContext *peer_ctx;
- if (0 == GNUNET_CRYPTO_cmp_peer_identity (peer, own_identity))
- {
- return GNUNET_NO;
- }
GNUNET_assert (GNUNET_YES == Peers_check_peer_known (peer));
-
peer_ctx = get_peer_ctx (peer);
return peer_ctx->recv_channel;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: last step to new cadet api,
gnunet <=