Function "min" is builtin with Go 1.21

This commit is contained in:
Joachim Bauch 2024-05-16 11:23:57 +02:00
parent 18300ce89e
commit d03ea86991
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

@ -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 {