Set writes to the detached store, not the embedded context's pooled store. This prevents downstream middleware writes from leaking into a later request that claims the same pooled context.
(key string, val any)
| 52 | // store. This prevents downstream middleware writes from leaking into a |
| 53 | // later request that claims the same pooled context. |
| 54 | func (p *poolSafeContext) Set(key string, val any) { |
| 55 | p.mu.Lock() |
| 56 | defer p.mu.Unlock() |
| 57 | p.store[key] = val |
| 58 | } |
no outgoing calls