From 0b71a46239788269710b91e27f1d38569a9c1821 Mon Sep 17 00:00:00 2001 From: David Colburn Date: Fri, 17 Dec 2021 13:25:41 -0800 Subject: [PATCH] missed some typos --- pkg/rtc/participant.go | 2 +- pkg/sfu/buffer/buffer.go | 2 +- pkg/sfu/downtrack.go | 6 +++--- pkg/sfu/forwarder.go | 2 +- pkg/sfu/prober.go | 4 ++-- pkg/sfu/rtpmunger_test.go | 2 +- pkg/sfu/streamallocator.go | 2 +- pkg/sfu/vp8munger.go | 2 +- pkg/telemetry/test/telemetry_service_test.go | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/pkg/rtc/participant.go b/pkg/rtc/participant.go index 3640e434..feb3cc67 100644 --- a/pkg/rtc/participant.go +++ b/pkg/rtc/participant.go @@ -1205,7 +1205,7 @@ func (p *ParticipantImpl) configureReceiverDTX() { // the transceivers, but there are no tracks in the // transceiver yet // - before calling `CreateAnswer` - // Due to the absensce of tracks when it is required to set DTX, + // Due to the absence of tracks when it is required to set DTX, // it is not possible to cross reference against a pending track // with the same track id. // diff --git a/pkg/sfu/buffer/buffer.go b/pkg/sfu/buffer/buffer.go index ca4eccb8..e4aabb39 100644 --- a/pkg/sfu/buffer/buffer.go +++ b/pkg/sfu/buffer/buffer.go @@ -661,7 +661,7 @@ func (s *SeqWrapHandler) MaxSeqNo() uint32 { return s.maxSeqNo } -// unwrap seq and update the maxSeqNo. return unwraped value, and whether seq is newer +// unwrap seq and update the maxSeqNo. return unwrapped value, and whether seq is newer func (s *SeqWrapHandler) Unwrap(seq uint16) (uint32, bool) { maxSeqNo := uint16(s.maxSeqNo) diff --git a/pkg/sfu/downtrack.go b/pkg/sfu/downtrack.go index 59c7d58e..5c2195b1 100644 --- a/pkg/sfu/downtrack.go +++ b/pkg/sfu/downtrack.go @@ -319,7 +319,7 @@ func (d *DownTrack) WritePaddingRTP(bytesToSend int) int { // LK-TODO-START // Potentially write padding even if muted. Given that padding - // can be sent only on frame boudaries, writing on disabled tracks + // can be sent only on frame boundaries, writing on disabled tracks // will give more options. // LK-TODO-END if d.forwarder.Muted() { @@ -345,7 +345,7 @@ func (d *DownTrack) WritePaddingRTP(bytesToSend int) int { // Hold sending padding packets till first RTCP-RR is received for this RTP stream. // That is definitive proof that the remote side knows about this RTP stream. // The packet count check at the beginning of this function gates sending padding - // on as yet unstarted streams which is a reasonble check. + // on as yet unstarted streams which is a reasonable check. // LK-TODO-END hdr := rtp.Header{ @@ -385,7 +385,7 @@ func (d *DownTrack) WritePaddingRTP(bytesToSend int) int { // LK-TODO-START // NACK buffer for these probe packets. // Probably okay to absorb the NACKs for these and ignore them. - // Retransmssion is probably a sign of network congestion/badness. + // Retransmission is probably a sign of network congestion/badness. // So, retransmitting padding packets is only going to make matters worse. // LK-TODO-END diff --git a/pkg/sfu/forwarder.go b/pkg/sfu/forwarder.go index 55298b73..d257a202 100644 --- a/pkg/sfu/forwarder.go +++ b/pkg/sfu/forwarder.go @@ -628,7 +628,7 @@ func (f *Forwarder) ProvisionalAllocateGetBestWeightedTransition() VideoTransiti // 2. Look at all possible down transitions from current target and find the best offer. // Best offer is calculated as bits saved moving to a down layer divided by cost. // Cost has two components - // a. Transition cost: Spatial layer switch is expensive due to key frame requiremnt, but temporal layer switch is free. + // a. Transition cost: Spatial layer switch is expensive due to key frame requirement, but temporal layer switch is free. // b. Quality cost: The farther away from desired layers, the higher the quality cost. // f.lock.Lock() diff --git a/pkg/sfu/prober.go b/pkg/sfu/prober.go index 59aa8c4a..cfc4f553 100644 --- a/pkg/sfu/prober.go +++ b/pkg/sfu/prober.go @@ -1,7 +1,7 @@ // // Design of Prober // -// Probing is used to to check for existence of excess channel capacity. +// Probing is used to check for existence of excess channel capacity. // This is especially useful in the downstream direction of SFU. // SFU forwards audio/video streams from one or more publishers to // all the subscribers. But, the downstream channel of a subscriber @@ -40,7 +40,7 @@ // probing window boundary as the packet forwarding path // may not have a packet to forward. But, it should not // be a major concern as long as some stream(s) is/are -// forwarded as there should be a packet atleast every +// forwarded as there should be a packet at least every // 60 ms or so (forwarding only one stream at 15 fps). // Usually, it will be serviced much more frequently when // there are multiple streams getting forwarded. diff --git a/pkg/sfu/rtpmunger_test.go b/pkg/sfu/rtpmunger_test.go index 648db709..5b0f5573 100644 --- a/pkg/sfu/rtpmunger_test.go +++ b/pkg/sfu/rtpmunger_test.go @@ -273,7 +273,7 @@ func TestGapInSequenceNumber(t *testing.T) { _, ok := r.missingSNs[65533] require.False(t, ok) - // three after last received misisng with wrap-around + // three after last received missing with wrap-around offset, ok := r.missingSNs[65534] require.True(t, ok) require.Equal(t, uint16(0), offset) diff --git a/pkg/sfu/streamallocator.go b/pkg/sfu/streamallocator.go index a53891b4..4b630f6f 100644 --- a/pkg/sfu/streamallocator.go +++ b/pkg/sfu/streamallocator.go @@ -614,7 +614,7 @@ func (s *StreamAllocator) maybeCommitEstimate() (isDecreasing bool) { // But, this bypasses the case where streaming starts on a bunch of // tracks simultaneously (imagine a participant joining a large room // with a lot of video tracks). In that case, it is possible that the - // channel is hitting congestion. It will caught on the next estimate + // channel is hitting congestion. It will be caught on the next estimate // decrease. s.lastEstimateDecreaseTime = time.Now() isDecreasing = true diff --git a/pkg/sfu/vp8munger.go b/pkg/sfu/vp8munger.go index ddebd3e0..39da9463 100644 --- a/pkg/sfu/vp8munger.go +++ b/pkg/sfu/vp8munger.go @@ -188,7 +188,7 @@ func (v *VP8Munger) UpdateAndGet(extPkt *buffer.ExtPacket, ordering SequenceNumb // In the case of loss (i.e. incoming sequence number is not contiguous), // forward even if it is a filtered layer. With temporal scalability, // it is unclear if the current packet should be dropped if it is not - // contiguous. Hence forward anything that is not contiguous. + // contiguous. Hence, forward anything that is not contiguous. // Reference: http://www.rtcbits.com/2017/04/howto-implement-temporal-scalability.html extMungedPictureId := extPictureId - v.pictureIdOffset mungedPictureId := uint16(extMungedPictureId & 0x7fff) diff --git a/pkg/telemetry/test/telemetry_service_test.go b/pkg/telemetry/test/telemetry_service_test.go index 90a16db0..8aae1662 100644 --- a/pkg/telemetry/test/telemetry_service_test.go +++ b/pkg/telemetry/test/telemetry_service_test.go @@ -34,7 +34,7 @@ func Test_TelemetryService_Downstream_Stats(t *testing.T) { totalBytes := 33 fixture.sut.OnDownstreamPacket(partSID, totalBytes) - // call participant left to trigget sending of analytics + // call participant left to trigger sending of analytics fixture.sut.ParticipantLeft(context.Background(), room, participantInfo) time.Sleep(time.Millisecond * 100) // wait for Update function to be called in go routine