imports/inspections
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user