Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Unified Diff: filter/count/gi.go

Issue 1306373002: filter/count: Fix alignment on 32-bit systems. (Closed) Base URL: https://github.com/luci/gae@master
Patch Set: Use &...{} instead of new. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: filter/count/gi.go
diff --git a/filter/count/gi.go b/filter/count/gi.go
index 1eb2589788d4f79b409811bc254f9f830c858187..2e8f64d6e72e28aac24851320609958da4561a66 100644
--- a/filter/count/gi.go
+++ b/filter/count/gi.go
@@ -143,6 +143,26 @@ func (g *infoCounter) SignBytes(bytes []byte) (keyName string, signature []byte,
// FilterGI installs a counter GlobalInfo filter in the context.
func FilterGI(c context.Context) (context.Context, *InfoCounter) {
state := &InfoCounter{}
+ state.AppID.init()
+ state.FullyQualifiedAppID.init()
+ state.GetNamespace.init()
+ state.Datacenter.init()
+ state.DefaultVersionHostname.init()
+ state.InstanceID.init()
+ state.IsDevAppServer.init()
+ state.IsOverQuota.init()
+ state.IsTimeoutError.init()
+ state.ModuleHostname.init()
+ state.ModuleName.init()
+ state.RequestID.init()
+ state.ServerSoftware.init()
+ state.ServiceAccount.init()
+ state.VersionID.init()
+ state.Namespace.init()
+ state.AccessToken.init()
+ state.PublicCertificates.init()
+ state.SignBytes.init()
+
return info.AddFilters(c, func(ic context.Context, gi info.Interface) info.Interface {
return &infoCounter{state, gi}
}), state
« filter/count/count.go ('K') | « filter/count/count_test.go ('k') | filter/count/mc.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698