Move timestamp up from 'Latest' string map to Report level

We never merge multiple string values in a single node from different
sources, so it's sufficient to take the value from the latest report.
This commit is contained in:
Bryan Boreham
2019-10-19 15:00:55 +00:00
parent e4660b081e
commit 07287c6ac0
15 changed files with 138 additions and 217 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ func hasMoreThanOneConnection(n report.Node, endpoints report.Nodes) bool {
firstRealEndpointID := ""
for _, endpointID := range n.Adjacency {
if ep, ok := endpoints[endpointID]; ok {
if copyID, _, ok := ep.Latest.LookupEntry(report.CopyOf); ok {
if copyID, ok := ep.Latest.Lookup(report.CopyOf); ok {
endpointID = copyID
}
}