mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
add a rate-limit.
This commit is contained in:
parent
9c2bc441f8
commit
86e6cb6409
1 changed files with 4 additions and 2 deletions
|
@ -1311,7 +1311,9 @@ store_multiple(consensus_cache_entry_handle_t **handles_out,
|
||||||
body_out,
|
body_out,
|
||||||
bodylen_out);
|
bodylen_out);
|
||||||
if (ent == NULL) {
|
if (ent == NULL) {
|
||||||
log_warn(LD_FS, "Unable to store object %s compressed with %s.",
|
static ratelim_t cant_store_ratelim = RATELIM_INIT(5*70);
|
||||||
|
log_fn_ratelim(&cant_store_ratelim, LOG_WARN, LD_FS,
|
||||||
|
"Unable to store object %s compressed with %s.",
|
||||||
description, methodname);
|
description, methodname);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue