Commit bb7fb82
committed
refactor(utils): tidy imports and update public-ip cache path in get_public_ip
- Reorder and simplify imports (group stdlib imports, tighten typing to `Any`/`Dict`).
- Replace `tempfile` usage and adjust import ordering for clarity.
- Change `FileCache`/`send_query` import order to `QueryResult, send_query`.
- Update cache directory path from "/tmp/runners/public-ip" to "/tmp/caches/public-ip".
- Minor whitespace and formatting cleanups.
This is a non-functional refactor that improves code organization and standardizes the temporary cache location.1 parent 993557e commit bb7fb82
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
| 2 | + | |
| 3 | + | |
5 | 4 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
38 | | - | |
| 36 | + | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
| |||
0 commit comments