imports/inspections

This commit is contained in:
David Colburn
2021-06-04 14:30:10 -05:00
parent c510ea2e1a
commit 5baf97e99b
7 changed files with 19 additions and 23 deletions
+2 -3
View File
@@ -32,7 +32,7 @@ type DataTrack struct {
func NewDataTrack(trackId, participantId string, dc *webrtc.DataChannel) *DataTrack {
t := &DataTrack{
//ctx: context.Background(),
// ctx: context.Background(),
id: trackId,
name: dc.Label(),
participantId: participantId,
@@ -156,8 +156,7 @@ func (t *DataTrack) forwardWorker() {
for _, sub := range t.subscribers {
err := sub.SendMessage(msg)
if err != nil {
logger.Errorw("could not send data message",
err,
logger.Errorw("could not send data message", err,
"source", t.participantId,
"dest", sub.participantId)
}
+3 -3
View File
@@ -841,7 +841,7 @@ func (p *ParticipantImpl) handleTrackPublished(track types.PublishedTrack) {
}
func (p *ParticipantImpl) handlePublisherICEStateChange(state webrtc.ICEConnectionState) {
//logger.Debugw("ICE connection state changed", "state", state.String(),
// logger.Debugw("ICE connection state changed", "state", state.String(),
// "participant", p.identity)
if state == webrtc.ICEConnectionStateConnected {
p.updateState(livekit.ParticipantInfo_ACTIVE)
@@ -924,9 +924,9 @@ func (p *ParticipantImpl) rtcpSendWorker() {
if pkts == nil {
return
}
//for _, pkt := range pkts {
// for _, pkt := range pkts {
// logger.Debugw("writing RTCP", "packet", pkt)
//}
// }
if err := p.publisher.pc.WriteRTCP(pkts); err != nil {
logger.Errorw("could not write RTCP to participant", err,
"participant", p.Identity())