Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
itzmanish committed Jan 22, 2025
1 parent 4ba6bec commit 73f3b37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mediaengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,19 @@ type MediaEngine struct {
mu sync.RWMutex
}

// SetMultiCodecNegotiation enables or disables the negotiation of multiple codecs.
func (m *MediaEngine) SetMultiCodecNegotiation(negotiateMultiCodecs bool) {
m.mu.Lock()
defer m.mu.Unlock()

m.negotiateMultiCodecs = negotiateMultiCodecs
}

// GetMultiCodecNegotiation returns the current state of the negotiation of multiple codecs.
func (m *MediaEngine) GetMultiCodecNegotiation() bool {
m.mu.RLock()
defer m.mu.RUnlock()

return m.negotiateMultiCodecs

Check warning on line 95 in mediaengine.go

View check run for this annotation

Codecov / codecov/patch

mediaengine.go#L91-L95

Added lines #L91 - L95 were not covered by tests
}

Expand Down

0 comments on commit 73f3b37

Please sign in to comment.