diff options
author | Julius Bünger <buenger@mytum.de> | 2015-02-17 03:38:42 +0000 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2015-02-17 03:38:42 +0000 |
commit | b09e38d61b47755964855e572ee87ffe01848ceb (patch) | |
tree | e27fae73452b5cac908286d14101346b6037af19 /src | |
parent | 5c336ce9a914cdd62982844381fc6b8e77681c46 (diff) | |
download | gnunet-b09e38d61b47755964855e572ee87ffe01848ceb.tar.gz gnunet-b09e38d61b47755964855e572ee87ffe01848ceb.zip |
- cleaned test code
Diffstat (limited to 'src')
-rw-r--r-- | src/rps/test_rps_multipeer.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/rps/test_rps_multipeer.c b/src/rps/test_rps_multipeer.c index de5dfac56..9367efff2 100644 --- a/src/rps/test_rps_multipeer.c +++ b/src/rps/test_rps_multipeer.c | |||
@@ -132,18 +132,22 @@ request_peers (void *cls, | |||
132 | * Seed peers. | 132 | * Seed peers. |
133 | */ | 133 | */ |
134 | void | 134 | void |
135 | seed_peers (void *cls, | 135 | seed_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
136 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
137 | { | 136 | { |
138 | unsigned int amount; | 137 | unsigned int amount; |
139 | struct RPSPeer *peer = (struct RPSPeer *) cls; | 138 | struct RPSPeer *peer = (struct RPSPeer *) cls; |
139 | unsigned int i; | ||
140 | 140 | ||
141 | GNUNET_assert (1 >= portion && | 141 | GNUNET_assert (1 >= portion |
142 | 0 < portion); | 142 | && 0 < portion); |
143 | 143 | ||
144 | amount = portion * NUM_PEERS; | 144 | amount = portion * NUM_PEERS; |
145 | 145 | ||
146 | // TODO log | 146 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Seeding peers:\n"); |
147 | for (i = 0 ; i < amount ; i++) | ||
148 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Seeding %u. peer: %s\n", | ||
149 | i, | ||
150 | GNUNET_i2s (&rps_peer_ids[i])); | ||
147 | 151 | ||
148 | GNUNET_RPS_seed_ids (peer->rps_handle, amount, rps_peer_ids); | 152 | GNUNET_RPS_seed_ids (peer->rps_handle, amount, rps_peer_ids); |
149 | } | 153 | } |