mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-19 04:16:21 +00:00
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:
+3
-1
@@ -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{})),
|
||||
),
|
||||
),
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user