Skip to content

Commit d234d8c

Browse files
committed
Initialising all lookupFuncs to noop
1 parent 64c4087 commit d234d8c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

gateway.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,20 @@ type resourceWithIndex struct {
1919
lookup lookupFunc
2020
}
2121

22+
var noop lookupFunc = func([]string) (result []net.IP) { return }
23+
2224
var orderedResources = []*resourceWithIndex{
2325
{
24-
name: "HTTPRoute",
26+
name: "HTTPRoute",
27+
lookup: noop,
2528
},
2629
{
27-
name: "Ingress",
30+
name: "Ingress",
31+
lookup: noop,
2832
},
2933
{
30-
name: "Service",
34+
name: "Service",
35+
lookup: noop,
3136
},
3237
}
3338

0 commit comments

Comments
 (0)