Commit 4f3559b
committed
docs: Fix misleading race-safety comment in RequestCoalescer
The comment claimed GetOrAdd would replace the entry (preventing the
race), but ConcurrentDictionary.GetOrAdd returns the existing entry.
The race can cause a missed coalescing opportunity but is benign —
both requests produce valid results independently.1 parent d5fe847 commit 4f3559b
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
0 commit comments