Skip to content

Commit 2f76ba9

Browse files
committed
Fix lint error in sfu-ws
Don't shadow error
1 parent b98ec3b commit 2f76ba9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sfu-ws/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,13 @@ func websocketHandler(w http.ResponseWriter, r *http.Request) {
234234

235235
// Setup the codecs you want to use.
236236
// We'll use a VP8 and Opus but you can also define your own
237-
if err := m.RegisterCodec(webrtc.RTPCodecParameters{
237+
if err = m.RegisterCodec(webrtc.RTPCodecParameters{
238238
RTPCodecCapability: webrtc.RTPCodecCapability{MimeType: webrtc.MimeTypeVP8, ClockRate: 90000, Channels: 0, SDPFmtpLine: "", RTCPFeedback: nil},
239239
PayloadType: 96,
240240
}, webrtc.RTPCodecTypeVideo); err != nil {
241241
panic(err)
242242
}
243-
if err := m.RegisterCodec(webrtc.RTPCodecParameters{
243+
if err = m.RegisterCodec(webrtc.RTPCodecParameters{
244244
RTPCodecCapability: webrtc.RTPCodecCapability{MimeType: webrtc.MimeTypeOpus, ClockRate: 48000, Channels: 2, SDPFmtpLine: "minptime=10; useinbandfec=1", RTCPFeedback: nil},
245245
PayloadType: 111,
246246
}, webrtc.RTPCodecTypeAudio); err != nil {

0 commit comments

Comments
 (0)