diff --git a/pkg/routing/selector/any_test.go b/pkg/routing/selector/any_test.go index e7c6d368..1b879414 100644 --- a/pkg/routing/selector/any_test.go +++ b/pkg/routing/selector/any_test.go @@ -59,7 +59,7 @@ func TestAnySelector_SelectNode_TwoChoice(t *testing.T) { createTestNode("node4", 0.9, 6, 12, livekit.NodeState_SERVING), }, wantErr: "", - expected: "", // Not determinstic selection, so no specific expected node + expected: "", // Not deterministic selection, so no specific expected node notExpected: "node4", // Node with highest load should not be selected }, { @@ -72,7 +72,7 @@ func TestAnySelector_SelectNode_TwoChoice(t *testing.T) { createTestNode("node3", 0.6, 12, 20, livekit.NodeState_SERVING), }, wantErr: "", - expected: "", // Not determinstic selection, so no specific expected node + expected: "", // Not deterministic selection, so no specific expected node notExpected: "node3", // Node with highest room count should not be selected }, { @@ -85,7 +85,7 @@ func TestAnySelector_SelectNode_TwoChoice(t *testing.T) { createTestNode("node3", 0.6, 4, 30, livekit.NodeState_SERVING), }, wantErr: "", - expected: "", // Not determinstic selection, so no specific expected node + expected: "", // Not deterministic selection, so no specific expected node notExpected: "node3", // Node with highest clients should not be selected }, { diff --git a/pkg/rtc/subscriptionmanager.go b/pkg/rtc/subscriptionmanager.go index 566c8b91..7d0d0e6a 100644 --- a/pkg/rtc/subscriptionmanager.go +++ b/pkg/rtc/subscriptionmanager.go @@ -728,13 +728,13 @@ func (m *SubscriptionManager) hasCapacityForSubscription(kind livekit.TrackType) switch kind { case livekit.TrackType_VIDEO: if m.params.SubscriptionLimitVideo > 0 && m.subscribedVideoCount.Load() >= m.params.SubscriptionLimitVideo { - m.params.Logger.Infow("subcription limit exceeded for video", "limit", m.params.SubscriptionLimitVideo, "subscriptions", m.subscribedVideoCount.Load()) + m.params.Logger.Infow("subscription limit exceeded for video", "limit", m.params.SubscriptionLimitVideo, "subscriptions", m.subscribedVideoCount.Load()) return false } case livekit.TrackType_AUDIO: if m.params.SubscriptionLimitAudio > 0 && m.subscribedAudioCount.Load() >= m.params.SubscriptionLimitAudio { - m.params.Logger.Infow("subcription limit exceeded for audio", "limit", m.params.SubscriptionLimitAudio, "subscriptions", m.subscribedAudioCount.Load()) + m.params.Logger.Infow("subscription limit exceeded for audio", "limit", m.params.SubscriptionLimitAudio, "subscriptions", m.subscribedAudioCount.Load()) return false } } diff --git a/pkg/rtc/transport.go b/pkg/rtc/transport.go index 4f907ba3..c1b5c0c0 100644 --- a/pkg/rtc/transport.go +++ b/pkg/rtc/transport.go @@ -1793,14 +1793,14 @@ func (t *PCTransport) HandleICETrickleSDPFragment(sdpFragment string) error { fragmentICEUfrag, fragmentICEPwd, err := parsedFragment.ExtractICECredential() if err != nil { t.params.Logger.Warnw( - "could not get ICE crendential from fragment", err, + "could not get ICE credential from fragment", err, "sdpFragment", sdpFragment, ) return ErrInvalidSDPFragment } remoteICEUfrag, remoteICEPwd, err := lksdp.ExtractICECredential(parsedRemote) if err != nil { - t.params.Logger.Warnw("could not get ICE crendential from remote description", err, "sdpFragment", sdpFragment, "remoteDescription", crd) + t.params.Logger.Warnw("could not get ICE credential from remote description", err, "sdpFragment", sdpFragment, "remoteDescription", crd) return err } if fragmentICEUfrag != "" && fragmentICEUfrag != remoteICEUfrag { @@ -2398,7 +2398,7 @@ func (t *PCTransport) handleLocalICECandidate(e event) error { filtered := false if c != nil { if t.preferTCP.Load() && c.Protocol != webrtc.ICEProtocolTCP { - t.params.Logger.Debugw("filtering out local candidate, TCP prefered", "candidate", c.String()) + t.params.Logger.Debugw("filtering out local candidate, TCP preferred", "candidate", c.String()) filtered = true } if !filtered && t.params.ExcludeIPv6LocalCandidates { @@ -2947,7 +2947,7 @@ func (t *PCTransport) handleRemoteAnswerReceived(sd *webrtc.SessionDescription, if err := t.setRemoteDescription(*sd); err != nil { // Pion will call RTPSender.Send method for each new added Downtrack, and return error if the DownTrack.Bind - // returns error. In case of Downtrack.Bind returns ErrUnsupportedCodec, the signal state will be stable as negotiation is aleady compelted + // returns error. In case of Downtrack.Bind returns ErrUnsupportedCodec, the signal state will be stable as negotiation is already completed // before startRTPSenders, and the peerconnection state can be recovered by next negotiation which will be triggered // by the SubscriptionManager unsubscribe the failure DownTrack. So don't treat this error as negotiation failure. if !errors.Is(err, webrtc.ErrUnsupportedCodec) { @@ -3199,7 +3199,7 @@ func offerAudioPayloadTypes(parsed *sdp.SessionDescription) map[mime.MimeType]we return out } -// In single peer connection mode, set up enebled codecs for sender. +// In single peer connection mode, set up enabled codecs for sender. // The config provides config of direction. // For publisher peer connection those are publish enabled codecs // and for subscriber peer connection those are subscribe enabled codecs. diff --git a/pkg/sfu/buffer/videolayerutils.go b/pkg/sfu/buffer/videolayerutils.go index d80c0a77..e23f1a08 100644 --- a/pkg/sfu/buffer/videolayerutils.go +++ b/pkg/sfu/buffer/videolayerutils.go @@ -422,7 +422,7 @@ func GetSpatialLayerForRid(mimeType mime.MimeType, rid string, ti *livekit.Track // corresponding to the back up codec mime type should // be updated in `TrackInfo`. This is a bit tricky // for a couple of cases - // a. Browsers like Firefox use a different CID everytime. + // a. Browsers like Firefox use a different CID every time. // So, it cannot be matched between `AddTrack` and SDP. // One option is to look for a published track with // back up codec and apply it there. But, that becomes diff --git a/pkg/sfu/bwe/sendsidebwe/send_side_bwe.go b/pkg/sfu/bwe/sendsidebwe/send_side_bwe.go index 4279046a..df631f27 100644 --- a/pkg/sfu/bwe/sendsidebwe/send_side_bwe.go +++ b/pkg/sfu/bwe/sendsidebwe/send_side_bwe.go @@ -29,7 +29,7 @@ var _ bwe.BWE = (*SendSideBWE)(nil) // Based on a simplified/modified version of JitterPath paper // (https://homepage.iis.sinica.edu.tw/papers/lcs/2114-F.pdf) // -// TWCC feedback is uesed to calcualte delta one-way-delay. +// TWCC feedback is used to calculate delta one-way-delay. // It is accumulated/propagated to determine in which region // groups of packets are operating in. // @@ -43,7 +43,7 @@ var _ bwe.BWE = (*SendSideBWE)(nil) // possibly_operating_in_jqr // } // But, in this implementation it is checked at packet group level, -// i. e. using queuing delay and aggreated delta one-way-delay of +// i. e. using queuing delay and aggregated delta one-way-delay of // the group and a minimum value threshold is applied before declaring // that a group is in JQR. // diff --git a/pkg/sfu/rtpstats/rtpstats_receiver.go b/pkg/sfu/rtpstats/rtpstats_receiver.go index 1fc1fc8e..dfd12739 100644 --- a/pkg/sfu/rtpstats/rtpstats_receiver.go +++ b/pkg/sfu/rtpstats/rtpstats_receiver.go @@ -369,7 +369,7 @@ func (r *RTPStatsReceiver) Update( // // Case 1: // Very old time stamp, happens under the following conditions - // - resume after long mute, this casues big time stamp jump ahead for the packets + // - resume after long mute, this causes big time stamp jump ahead for the packets // after unmute // - an out of order packet from before the mute arrives (unsure what causes this // very old packet to be transmitted from remote), causing time stamp to jump back diff --git a/pkg/sfu/streamtracker/streamtracker_dd.go b/pkg/sfu/streamtracker/streamtracker_dd.go index a87f2e74..1616d72c 100644 --- a/pkg/sfu/streamtracker/streamtracker_dd.go +++ b/pkg/sfu/streamtracker/streamtracker_dd.go @@ -210,7 +210,7 @@ func (s *StreamTrackerDependencyDescriptor) Observe(temporalLayer int32, pktSize s.params.Logger.Errorw("len(dtis) less than target", nil, "target", dt.Target, "dtis", dtis) continue } - // we are not dropping discardable frames now, so only ingore not present frames + // we are not dropping discardable frames now, so only ignore not present frames if dtis[dt.Target] == dd.DecodeTargetNotPresent { continue }