Here https://github.com/livepeer/livepeer-data/blob/cfda3ec676f6339522b550e6035d4fb44e0676cf/health/record.go#L90 is data race. Here https://github.com/livepeer/livepeer-data/blob/cfda3ec676f6339522b550e6035d4fb44e0676cf/pkg/event/stream_consumer.go#L91 it can write to `msgChan` after it was closed here https://github.com/livepeer/livepeer-data/blob/cfda3ec676f6339522b550e6035d4fb44e0676cf/pkg/event/stream_consumer.go#L111 Here https://github.com/livepeer/livepeer-data/blob/cfda3ec676f6339522b550e6035d4fb44e0676cf/health/core.go#L136 and here https://github.com/livepeer/livepeer-data/blob/cfda3ec676f6339522b550e6035d4fb44e0676cf/health/core.go#L106 `LastStatus` being copied not under the lock.
Here
livepeer-data/health/record.go
Line 90 in cfda3ec
is data race.
Here
livepeer-data/pkg/event/stream_consumer.go
Line 91 in cfda3ec
it can write to
msgChanafter it was closed herelivepeer-data/pkg/event/stream_consumer.go
Line 111 in cfda3ec
Here
livepeer-data/health/core.go
Line 136 in cfda3ec
and here
livepeer-data/health/core.go
Line 106 in cfda3ec
LastStatusbeing copied not under the lock.