Make the thing compile.

This commit is contained in:
Mike Perry 2022-07-13 23:41:10 +00:00 committed by Micah Elizabeth Scott
parent e605620744
commit 121766e6b8
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;