jito-foundation / jito-relayer

Jito Foundation's Transaction Relayer
http://jito.network/
Apache License 2.0
71 stars 29 forks source link

use better locking scheme #42

Closed segfaultdoc closed 1 year ago

segfaultdoc commented 1 year ago

fixes: JIT-228

linear[bot] commented 1 year ago
JIT-228 Use better locking mechanism for the challenges queue in the Relayer's auth-service

Right now the queue is locked for the entirety of each endpoint's method body. This is not ideal as it makes the service effectively single threaded. Minimize the scope of locking to only where it needs to be done for maximum concurrency.