Staticcheck (#464)
Using `go get -u honnef.co/go/tools/cmd/staticcheck` Uneaarthed a couple of real bugs
This commit is contained in:
@@ -29,8 +29,6 @@ type MediaTrack struct {
|
||||
audioLevelMu sync.RWMutex
|
||||
audioLevel *AudioLevel
|
||||
|
||||
done chan struct{}
|
||||
|
||||
*MediaTrackReceiver
|
||||
|
||||
lock sync.RWMutex
|
||||
|
||||
@@ -81,9 +81,6 @@ type ParticipantImpl struct {
|
||||
// when first connected
|
||||
connectedAt time.Time
|
||||
|
||||
// JSON encoded metadata to pass to clients
|
||||
metadata string
|
||||
|
||||
rtcpCh chan []rtcp.Packet
|
||||
|
||||
// hold reference for MediaTrack
|
||||
|
||||
Reference in New Issue
Block a user