chore: use go1.18beta1

This commit is contained in:
nadoo committed 2022-01-26 23:40:49 +08:00
1 parent 755a8ca565
commit fac4b86f60
22 files changed
+49 -59

No files matched your search

+5 -5
View File
@@ -6,12 +6,12 @@ func _itimediff(later, earlier uint32) int32 {
type shaperHeap []writeRequest
func (h shaperHeap) Len() int { return len(h) }
func (h shaperHeap) Less(i, j int) bool { return _itimediff(h[j].prio, h[i].prio) > 0 }
func (h shaperHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] }
func (h *shaperHeap) Push(x interface{}) { *h = append(*h, x.(writeRequest)) }
func (h shaperHeap) Len() int { return len(h) }
func (h shaperHeap) Less(i, j int) bool { return _itimediff(h[j].prio, h[i].prio) > 0 }
func (h shaperHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] }
func (h *shaperHeap) Push(x any) { *h = append(*h, x.(writeRequest)) }
func (h *shaperHeap) Pop() interface{} {
func (h *shaperHeap) Pop() any {
old := *h
n := len(old)
x := old[n-1]