Skip to content

Commit 746bf67

Browse files
committed
move namespace func closer to definition
1 parent de18137 commit 746bf67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/state/relationship/capturer.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ type (
4848
namespaces map[types.NamespacedName]namespaceCfg
4949
)
5050

51+
func (n namespaceCfg) match() bool {
52+
return len(n.gateways) > 0
53+
}
54+
5155
// CapturerImpl implements the Capturer interface.
5256
type CapturerImpl struct {
5357
routesToServices routeToServicesMap
@@ -245,7 +249,3 @@ func (c *CapturerImpl) removeGatewayLabelSelector(gatewayName types.NamespacedNa
245249
c.namespaces[ns] = cfg
246250
}
247251
}
248-
249-
func (n namespaceCfg) match() bool {
250-
return len(n.gateways) > 0
251-
}

0 commit comments

Comments
 (0)