Files
threshold/internal/event
Hugo 22b54c8b97 fix(event): Prevent eventer data races by removing shallow object copy (#5139)
This issue was surfaced through other changes (PR 5137).

Given that the eventer works in a singleton pattern (see sysEventer
global variable), performing this shallow object copy can cause a data
race because the copy operation reads the underlying eventer data
structures. At the same time, given the global nature of this eventer,
other goroutines can be writing to those same data structures.

Since we're already using a singleton pattern in this package, and given
that the current copy operation is shallow, copying the object doesn't
seem necessary, so this commit changes `StandardWriter` to build the
`logAdapter` with the `e` eventer directly instead of copying it.
2024-09-30 12:17:56 -07:00
..
2024-04-05 16:46:22 -04:00
2024-02-13 15:50:11 -05:00
2024-04-11 09:08:45 -07:00
2024-02-13 15:50:11 -05:00
2024-02-16 08:30:16 -05:00
2024-02-13 15:50:11 -05:00