mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-20 13:06:20 +02:00
Make the thing compile.
This commit is contained in:
parent
e605620744
commit
121766e6b8
@ -1325,8 +1325,9 @@ hs_circ_handle_introduce2(const hs_service_t *service,
|
||||
/* Add the rendezvous request to the priority queue if PoW defenses are
|
||||
* enabled, otherwise rendezvous as usual. */
|
||||
if (service->config.has_pow_defenses_enabled) {
|
||||
log_notice(LD_REND, "Adding introduction request to pqueue with effort: %u",
|
||||
data.rdv_data.pow_effort);
|
||||
log_notice(LD_REND,
|
||||
"Adding introduction request to pqueue with effort: %u",
|
||||
data.rdv_data.pow_effort);
|
||||
if (enqueue_rend_request(service, ip, &data, now) < 0) {
|
||||
goto done;
|
||||
}
|
||||
|
@ -2135,7 +2135,7 @@ decode_pow_params(const directory_token_t *tok,
|
||||
escaped(tok->args[2]));
|
||||
goto done;
|
||||
}
|
||||
pow_params->suggested_effort = effort;
|
||||
pow_params->suggested_effort = (uint32_t)effort;
|
||||
|
||||
/* Parse the expiration time of the PoW params. */
|
||||
time_t expiration_time = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user