Skip to content

Commit

Permalink
Initialising all lookupFuncs to noop
Browse files Browse the repository at this point in the history
  • Loading branch information
networkop committed Jan 14, 2022
1 parent 64c4087 commit d234d8c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,20 @@ type resourceWithIndex struct {
lookup lookupFunc
}

var noop lookupFunc = func([]string) (result []net.IP) { return }

var orderedResources = []*resourceWithIndex{
{
name: "HTTPRoute",
name: "HTTPRoute",
lookup: noop,
},
{
name: "Ingress",
name: "Ingress",
lookup: noop,
},
{
name: "Service",
name: "Service",
lookup: noop,
},
}

Expand Down

0 comments on commit d234d8c

Please sign in to comment.