Lighthouse performance pass (#418)

This commit is contained in:
Nathan Brown
2021-03-31 17:32:02 -05:00
committed by GitHub
parent e7e55618ff
commit 75f7bda0a4
12 changed files with 2378 additions and 972 deletions

View File

@ -142,8 +142,11 @@ func Test_NewHandshakeManagerTrigger(t *testing.T) {
hi := blah.pendingHostMap.Hosts[ip]
assert.Nil(t, hi.remote)
lh.addrMap = map[uint32][]*udpAddr{
ip: {NewUDPAddrFromString("10.1.1.1:4242")},
uaddr := NewUDPAddrFromString("10.1.1.1:4242")
lh.addrMap = map[uint32]*ip4And6{}
lh.addrMap[ip] = &ip4And6{
v4: []*Ip4AndPort{NewIp4AndPort(uaddr.IP, uint32(uaddr.Port))},
v6: []*Ip6AndPort{},
}
// This should trigger the hostmap to populate the hostinfo