This repository has been archived by the owner on May 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #740 from keep-network/mmmutex
Guard execution of on-chain firewall calls with a mutex This PR is a continuation of firewall fixes started in #737. Keeping as a draft until properly tested. This change is effectively reducing firewall on-chain concurrency to one call but this is exactly what we need. The loop going through keeps is always executing checks in a sequence. When two on-chain calls were executed at the same time, they were always a duplicate of the same call. Mutex should not slow anything down and should in fact speed up the loop. Instead of executing the same check from 8 concurrent threads and being rate-limited, we will execute 8 different checks at more or less the same time.
- Loading branch information
Showing
1 changed file
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters