From 52f4cb599a5a33a03913c9c964123486737224b0 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Sat, 5 Nov 2022 13:08:50 +0800 Subject: [PATCH] fix: pool_test.go --- component/fakeip/pool_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/component/fakeip/pool_test.go b/component/fakeip/pool_test.go index 0e9dd630..7919675b 100644 --- a/component/fakeip/pool_test.go +++ b/component/fakeip/pool_test.go @@ -128,8 +128,8 @@ func TestPool_CycleUsed(t *testing.T) { func TestPool_Skip(t *testing.T) { ipnet := netip.MustParsePrefix("192.168.0.1/29") - tree := trie.New[bool]() - tree.Insert("example.com", true) + tree := trie.New[struct{}]() + tree.Insert("example.com", struct{}{}) pools, tempfile, err := createPools(Options{ IPNet: &ipnet, Size: 10,