From 1cf7ae51f84a610b038a73c2138dc64b1ebaddd7 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Wed, 8 Sep 2021 19:25:20 -0500 Subject: [PATCH] add comment (#19705) --- runtime/src/rent_collector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/rent_collector.rs b/runtime/src/rent_collector.rs index 744bd7ee0a..9593f1b423 100644 --- a/runtime/src/rent_collector.rs +++ b/runtime/src/rent_collector.rs @@ -54,7 +54,7 @@ impl RentCollector { // updates this account's lamports and status and returns // the account rent collected, if any - // + // This is NOT thread safe at some level. If we try to collect from the same account in parallel, we may collect twice. #[must_use = "add to Bank::collected_rent"] pub fn collect_from_existing_account( &self,