mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-06 02:30:57 -08:00
Generic timerwheel (#804)
This commit is contained in:
parent
c177126ed0
commit
5278b6f926
8 changed files with 116 additions and 431 deletions
|
|
@ -106,8 +106,8 @@ func Test_NewHandshakeManagerTrigger(t *testing.T) {
|
|||
assert.Equal(t, 1, testCountTimerWheelEntries(blah.OutboundHandshakeTimer))
|
||||
}
|
||||
|
||||
func testCountTimerWheelEntries(tw *SystemTimerWheel) (c int) {
|
||||
for _, i := range tw.wheel {
|
||||
func testCountTimerWheelEntries(tw *LockingTimerWheel[iputil.VpnIp]) (c int) {
|
||||
for _, i := range tw.t.wheel {
|
||||
n := i.Head
|
||||
for n != nil {
|
||||
c++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue