diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-24 11:54:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-24 11:54:36 +0000 |
commit | eafc8188ef6584f77dc4dbc6827210f384986e1a (patch) | |
tree | 501f87ddd224b0cbd5aaf9008b57005b129cac24 /src/peerinfo/test_peerinfo_api.c | |
parent | 2e95a6961bf57170b215ab28e50dbf2376d46747 (diff) | |
download | gnunet-eafc8188ef6584f77dc4dbc6827210f384986e1a.tar.gz gnunet-eafc8188ef6584f77dc4dbc6827210f384986e1a.zip |
update peerinfo API to use MQ
Diffstat (limited to 'src/peerinfo/test_peerinfo_api.c')
-rw-r--r-- | src/peerinfo/test_peerinfo_api.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/peerinfo/test_peerinfo_api.c b/src/peerinfo/test_peerinfo_api.c index 9fe6bf712..96e73e20a 100644 --- a/src/peerinfo/test_peerinfo_api.c +++ b/src/peerinfo/test_peerinfo_api.c | |||
@@ -119,8 +119,7 @@ process (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
119 | retries++; | 119 | retries++; |
120 | add_peer (); | 120 | add_peer (); |
121 | ic = GNUNET_PEERINFO_iterate (h, GNUNET_NO, NULL, | 121 | ic = GNUNET_PEERINFO_iterate (h, GNUNET_NO, NULL, |
122 | GNUNET_TIME_relative_multiply | 122 | &process, |
123 | (GNUNET_TIME_UNIT_SECONDS, 15), &process, | ||
124 | cls); | 123 | cls); |
125 | return; | 124 | return; |
126 | } | 125 | } |
@@ -135,7 +134,8 @@ process (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
135 | { | 134 | { |
136 | GNUNET_assert (3 == global_ret); | 135 | GNUNET_assert (3 == global_ret); |
137 | agc = 3; | 136 | agc = 3; |
138 | GNUNET_HELLO_iterate_addresses (hello, GNUNET_NO, &check_it, &agc); | 137 | GNUNET_HELLO_iterate_addresses (hello, GNUNET_NO, |
138 | &check_it, &agc); | ||
139 | GNUNET_assert (agc == 0); | 139 | GNUNET_assert (agc == 0); |
140 | global_ret = 2; | 140 | global_ret = 2; |
141 | } | 141 | } |
@@ -151,8 +151,7 @@ run (void *cls, | |||
151 | GNUNET_assert (NULL != h); | 151 | GNUNET_assert (NULL != h); |
152 | add_peer (); | 152 | add_peer (); |
153 | ic = GNUNET_PEERINFO_iterate (h, GNUNET_NO, &pid, | 153 | ic = GNUNET_PEERINFO_iterate (h, GNUNET_NO, &pid, |
154 | GNUNET_TIME_relative_multiply | 154 | &process, cls); |
155 | (GNUNET_TIME_UNIT_SECONDS, 15), &process, cls); | ||
156 | } | 155 | } |
157 | 156 | ||
158 | 157 | ||