MCPcopy
hub / github.com/grpc/grpc-go / Swap

Method Swap

internal/wrr/edf.go:56–56  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

54 return pq[i].deadline < pq[j].deadline || pq[i].deadline == pq[j].deadline && pq[i].orderOffset < pq[j].orderOffset
55}
56func (pq edfPriorityQueue) Swap(i, j int) { pq[i], pq[j] = pq[j], pq[i] }
57
58func (pq *edfPriorityQueue) Push(x any) {
59 *pq = append(*pq, x.(*edfEntry))

Callers 15

updatePickerMethod · 0.45
closeMethod · 0.45
resetMethod · 0.45
CloseMethod · 0.45
updateHeaderSentMethod · 0.45
getOnceLockedMethod · 0.45
finishMethod · 0.45
swapMethod · 0.45
applyConfigurationMethod · 0.45
SetHeaderMethod · 0.45
SendHeaderMethod · 0.45
unaryInterceptorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected