Skip to content

Commit 055fe13

Browse files
committed
Revert "ping: Increate mapping capacity"
This reverts commit a24ab73.
1 parent e8d7fc1 commit 055fe13

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

route_direct.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package tun
22

33
import (
4-
"math"
54
"net/netip"
65
"time"
76

@@ -30,7 +29,7 @@ type DirectRouteMapping struct {
3029
}
3130

3231
func NewDirectRouteMapping(timeout time.Duration) *DirectRouteMapping {
33-
mapping := common.Must1(freelru.NewSharded[DirectRouteSession, DirectRouteDestination](math.MaxUint16, maphash.NewHasher[DirectRouteSession]().Hash32))
32+
mapping := common.Must1(freelru.NewSharded[DirectRouteSession, DirectRouteDestination](1024, maphash.NewHasher[DirectRouteSession]().Hash32))
3433
mapping.SetHealthCheck(func(session DirectRouteSession, action DirectRouteDestination) bool {
3534
if action != nil {
3635
return !action.IsClosed()

0 commit comments

Comments
 (0)