From 5adfca9b651e0e383d463da9e8158e75cad8e7c7 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 25 Apr 2014 01:51:36 +0200 Subject: Remove ref-counting on remotes Now that peers have a peer id we can use that to specify a peer in a resolve return. As the remote list of a peer doesn't change without the peer id changing, instead of taking a remote ref we can just use the peer id and remote index. --- src/async.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/async.h') diff --git a/src/async.h b/src/async.h index 7e1921c..f2a8f20 100644 --- a/src/async.h +++ b/src/async.h @@ -31,7 +31,9 @@ struct fastd_async_resolve_return { - fastd_remote_t *remote; + uint64_t peer_id; + size_t remote; + size_t n_addr; fastd_peer_address_t addr[]; }; -- cgit v1.2.3