From cb2e91d4da16eb8094a30222dea008f667efc49b Mon Sep 17 00:00:00 2001 From: Sir Darkrengarius Date: Fri, 12 Feb 2021 22:35:01 +0300 Subject: [PATCH] Move `Updated` field from `Status` to `SignedEntry` --- pkg/transport/entry.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/transport/entry.go b/pkg/transport/entry.go index d67c4d6c47..f97f369ead 100644 --- a/pkg/transport/entry.go +++ b/pkg/transport/entry.go @@ -166,9 +166,6 @@ type Status struct { // IsUp represents whether the Transport is up. // A Transport that is down will fail to forward Packets. IsUp bool `json:"is_up"` - - // Updated is the epoch timestamp of when the status is last updated. - Updated int64 `json:"updated,omitempty"` } // EntryWithStatus stores Entry and Statuses returned by both Edges. @@ -176,6 +173,7 @@ type EntryWithStatus struct { Entry *Entry `json:"entry"` IsUp bool `json:"is_up"` Registered int64 `json:"registered"` + Updated int64 `json:"updated"` Statuses [2]bool `json:"statuses"` }