diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-25 01:51:36 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-25 01:51:36 +0200 |
commit | 5adfca9b651e0e383d463da9e8158e75cad8e7c7 (patch) | |
tree | 906d85ae42ceede085d7c84bf9cdd9e678c03ae7 /src/async.h | |
parent | 482ddc46a62b9a6b8bd615fd35b2bac6d3b7d841 (diff) | |
download | fastd-5adfca9b651e0e383d463da9e8158e75cad8e7c7.tar fastd-5adfca9b651e0e383d463da9e8158e75cad8e7c7.zip |
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.
Diffstat (limited to 'src/async.h')
-rw-r--r-- | src/async.h | 4 |
1 files changed, 3 insertions, 1 deletions
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[]; }; |