Commit f8318c8
committed
Move recover authority logic inside submitted lambda
Since submit_eth_call_to_pool() is called from rust thread, blocking on
fiber promises is not appropriate and can lead to performance issues.
Move recovert_authorities() logic inside lambda executed in fiber pool.
Since eth call txn has single authority, parallelization logic inside
recover_authorities() only intoduces overhead without benefits. Replace
parallelization with single call to recover_authority().1 parent de74e03 commit f8318c8
1 file changed
+15
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | 601 | | |
605 | 602 | | |
606 | 603 | | |
| |||
613 | 610 | | |
614 | 611 | | |
615 | 612 | | |
616 | | - | |
617 | 613 | | |
618 | 614 | | |
619 | 615 | | |
| |||
640 | 636 | | |
641 | 637 | | |
642 | 638 | | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
643 | 648 | | |
644 | 649 | | |
645 | 650 | | |
| |||
0 commit comments