tari-project / tari-dan

BSD 3-Clause "New" or "Revised" License
7 stars 16 forks source link

fix(indexer): reuse validator RPC sessions #1057

Closed sdbondi closed 3 months ago

sdbondi commented 3 months ago

Description

caches and reuses validator RPC sessions

Motivation and Context

When submitting many transactions through the indexer (using tariswap test) new RPC sessions would hit the session limit. This PR keeps hold of RPC sessions and reuses them (requests are queued) instead of creating new sessions.

How Has This Been Tested?

Tariswap test works.

What process can a PR reviewer use to test or verify this change?

Tariswap test (utilities/tariswap_test_bench)

Breaking Changes

github-actions[bot] commented 3 months ago

Test Results (CI)

538 tests  ±0   538 :white_check_mark: ±0   1h 36m 17s :stopwatch: - 44m 39s  64 suites ±0     0 :zzz: ±0    2 files   ±0     0 :x: ±0 

Results for commit bbe46f6a. ± Comparison against base commit 0ebb1fb1.