Fix wrong rate limit + add a few logs. (#6440)

* Add trace log

* More tracing.

* Fix redundant rate limit.

* Add trace log.

* Improve logging.

Co-authored-by: eskimor <eskimor@no-such-url.com>
This commit is contained in:
eskimor
2022-12-15 10:47:06 +01:00
committed by GitHub
parent a3c81fe2a9
commit 3c1a28276d
4 changed files with 35 additions and 3 deletions
@@ -1327,6 +1327,11 @@ async fn get_approval_signatures_for_candidate<Context>(
// No need to block subsystem on this (also required to break cycle).
// We should not be sending this message frequently - caller must make sure this is bounded.
gum::trace!(
target: LOG_TARGET,
?candidate_hash,
"Spawning task for fetching sinatures from approval-distribution"
);
ctx.spawn("get-approval-signatures", Box::pin(get_approvals))
}