Catching a few more files with types (#299)

* Use types in mediatrack.go

* A bunch more files get types

* One more file
This commit is contained in:
Raja Subramanian
2021-12-29 23:51:06 +05:30
committed by GitHub
parent fe06b46e94
commit 9d78619ca3
15 changed files with 174 additions and 174 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import (
"github.com/livekit/livekit-server/pkg/rtc/types/typesfakes"
)
func newMockParticipant(identity string, protocol types.ProtocolVersion, hidden bool) *typesfakes.FakeParticipant {
func newMockParticipant(identity livekit.ParticipantIdentity, protocol types.ProtocolVersion, hidden bool) *typesfakes.FakeParticipant {
p := &typesfakes.FakeParticipant{}
p.IDReturns(utils.NewGuid(utils.ParticipantPrefix))
p.IdentityReturns(identity)
@@ -38,7 +38,7 @@ func newMockParticipant(identity string, protocol types.ProtocolVersion, hidden
}
}
p.SetTrackMutedStub = func(sid string, muted bool, fromServer bool) {
p.SetTrackMutedStub = func(sid livekit.TrackID, muted bool, fromServer bool) {
updateTrack()
}
p.AddTrackStub = func(req *livekit.AddTrackRequest) {