Commit f30c324
refactor(api): inline import-time _routes global into start() (leanEthereum#983)
Build the aiohttp route list inside start() instead of at module
import time.
This removes an import-time side effect and a module-level global
that was only ever read in one place.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent b3007c1 commit f30c324
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
| |||
103 | 99 | | |
104 | 100 | | |
105 | 101 | | |
106 | | - | |
107 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
108 | 106 | | |
109 | 107 | | |
110 | 108 | | |
| |||
0 commit comments