Skip to content

Commit

Permalink
Merge pull request #684 from Darkren/feature/automatic-transport-expi…
Browse files Browse the repository at this point in the history
…ration

Move `Updated` field from `Status` to `EntryWithStatus`
  • Loading branch information
jdknives authored May 5, 2021
2 parents d3a7d7d + cb2e91d commit 498f689
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/transport/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,14 @@ 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.
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"`
}

Expand Down

0 comments on commit 498f689

Please sign in to comment.