Skip to content

Commit bcb3366

Browse files
conference: update TODOs and FIXMEs
1 parent ff566b0 commit bcb3366

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

pkg/conference/participant.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (p *Participant) sendDataChannelMessage(toSend event.SFUMessage) {
4545
}
4646

4747
if err := p.peer.SendOverDataChannel(string(jsonToSend)); err != nil {
48-
// FIXME: We must buffer the message in this case and re-send it once the data channel is recovered!
48+
// TODO: We must buffer the message in this case and re-send it once the data channel is recovered!
4949
p.logger.Error("Failed to send data channel message")
5050
}
5151
}

pkg/peer/webrtc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ func (p *Peer[ID]) onNegotiationNeeded() {
103103
func (p *Peer[ID]) onICEConnectionStateChanged(state webrtc.ICEConnectionState) {
104104
p.logger.WithField("state", state).Info("ICE connection state changed")
105105

106-
// TODO: Ask Simon if we should do it here as in the previous implementation.
107106
switch state {
108107
case webrtc.ICEConnectionStateFailed, webrtc.ICEConnectionStateDisconnected:
109-
// TODO: We may want to treat it as an opportunity for the ICE restart instead.
108+
// TODO: Ask Simon if we should do it here as in the previous implementation.
109+
// Ideally we want to perform an ICE restart here.
110110
// p.notify <- PeerLeftTheCall{sender: p.data}
111111
case webrtc.ICEConnectionStateCompleted, webrtc.ICEConnectionStateConnected:
112112
// FIXME: Start keep-alive timer over the data channel to check the connecitons that hanged.

pkg/router.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ func (r *Router) handleMatrixEvent(evt *event.Event) {
145145
delete(r.conferenceSinks, conferenceID)
146146
// Since we were not able to send the message, let's re-process it now.
147147
// Note, we probably do not want to block here!
148-
// TODO: Do it better (use buffered channels or something).
149148
r.handleMatrixEvent(evt)
150149
}
151150
}

0 commit comments

Comments
 (0)