You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ne...@apache.org on 2016/11/07 19:29:48 UTC
[02/21] incubator-trafficcontrol git commit: Fix TM2 cache.Result to
optimize struct size
Fix TM2 cache.Result to optimize struct size
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/0bf2afd9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/0bf2afd9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/0bf2afd9
Branch: refs/heads/master
Commit: 0bf2afd9102dc8ae3c7c2d8742031d10447bf1b7
Parents: 7401f7c
Author: Robert Butts <ro...@gmail.com>
Authored: Thu Nov 3 14:23:16 2016 -0600
Committer: Dave Neuman <ne...@apache.org>
Committed: Mon Nov 7 12:29:08 2016 -0700
----------------------------------------------------------------------
.../experimental/traffic_monitor/cache/cache.go | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0bf2afd9/traffic_monitor/experimental/traffic_monitor/cache/cache.go
----------------------------------------------------------------------
diff --git a/traffic_monitor/experimental/traffic_monitor/cache/cache.go b/traffic_monitor/experimental/traffic_monitor/cache/cache.go
index f282976..7f04e34 100644
--- a/traffic_monitor/experimental/traffic_monitor/cache/cache.go
+++ b/traffic_monitor/experimental/traffic_monitor/cache/cache.go
@@ -53,16 +53,16 @@ type PrecomputedData struct {
// Result is the data result returned by a cache.
type Result struct {
- ID enum.CacheName
- Available bool
- Error error
- Astats Astats
- Time time.Time
- RequestTime time.Duration
- Vitals Vitals
- PrecomputedData
+ ID enum.CacheName
+ Error error
+ Astats Astats
+ Time time.Time
+ RequestTime time.Duration
+ Vitals Vitals
PollID uint64
PollFinished chan<- uint64
+ PrecomputedData
+ Available bool
}
// Vitals is the vitals data returned from a cache.