memoise renderer passed to ConnectionJoin

We do this here rather than in ConnectionJoin since that way it is
obvious that the renderer isn't memoised already.
This commit is contained in:
Matthias Radestock
2017-11-05 11:05:28 +00:00
parent 5f4f9da4df
commit 7b0a08ae9d
+3 -1
View File
@@ -62,7 +62,9 @@ var PodRenderer = Memoise(ConditionalRenderer(renderKubernetesTopologies,
),
),
),
ConnectionJoin(MapPod2IP, selectPodsWithDeployments{}),
// ConnectionJoin invokes the renderer twice, hence it
// helps to memoise it.
ConnectionJoin(MapPod2IP, Memoise(selectPodsWithDeployments{})),
),
),
))