chore: add new bbr implementation
This commit is contained in:
13
transport/tuic/congestion_v2/minmax_go121.go
Normal file
13
transport/tuic/congestion_v2/minmax_go121.go
Normal file
@ -0,0 +1,13 @@
|
||||
//go:build go1.21
|
||||
|
||||
package congestion
|
||||
|
||||
import "cmp"
|
||||
|
||||
func Max[T cmp.Ordered](a, b T) T {
|
||||
return max(a, b)
|
||||
}
|
||||
|
||||
func Min[T cmp.Ordered](a, b T) T {
|
||||
return min(a, b)
|
||||
}
|
Reference in New Issue
Block a user