mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-08 17:02:18 +02:00
Function "min" is builtin with Go 1.21
This commit is contained in:
parent
18300ce89e
commit
d03ea86991
|
@ -719,14 +719,6 @@ func (m *mcuJanus) SubscriberDisconnected(id string, publisher string, streamTyp
|
|||
}
|
||||
}
|
||||
|
||||
func min(a, b int) int {
|
||||
if a <= b {
|
||||
return a
|
||||
}
|
||||
|
||||
return b
|
||||
}
|
||||
|
||||
func (m *mcuJanus) getOrCreatePublisherHandle(ctx context.Context, id string, streamType StreamType, bitrate int) (*JanusHandle, uint64, uint64, int, error) {
|
||||
session := m.session
|
||||
if session == nil {
|
||||
|
|
Loading…
Reference in a new issue