Commit 25e54e3
committed
fix: call ring provider install exactly once via Once
Use std::sync::Once in ensure_ring_provider so that
install_default() is only attempted on the first call per process,
avoiding redundant global-state mutations on subsequent calls.1 parent ac07cf0 commit 25e54e3
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
0 commit comments