Don't merge nodes in the rendering pipeline

This commit is contained in:
Tom Wilkie
2016-04-28 16:26:59 +01:00
committed by Tom Wilkie
parent 57bc6f7c90
commit 9eaac25d69
5 changed files with 16 additions and 6 deletions

View File

@@ -151,3 +151,10 @@ func (ad applyDecorator) Stats(rpt report.Report, dct Decorator) Stats {
func ApplyDecorators(renderer Renderer) Renderer {
return applyDecorator{renderer}
}
func propagateLatest(key string, from, to report.Node) report.Node {
if value, timestamp, ok := from.Latest.LookupEntry(key); ok {
to.Latest = to.Latest.Set(key, timestamp, value)
}
return to
}