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

Unified Diff: impl/prod/taskqueue.go

Issue 1289323002: Fix miscellaneous prod bugs. (Closed) Base URL: https://github.com/luci/gae@master
Patch Set: Rebase. 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
« no previous file with comments | « impl/prod/raw_datastore.go ('k') | service/datastore/checkfilter.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/prod/taskqueue.go
diff --git a/impl/prod/taskqueue.go b/impl/prod/taskqueue.go
index 670add1cabed00a5efb354af77b728eeb04976bc..1e448e29039b56b9873f014dfeb0f2e50e204e4f 100644
--- a/impl/prod/taskqueue.go
+++ b/impl/prod/taskqueue.go
@@ -27,19 +27,19 @@ type tqImpl struct {
}
func init() {
- const taskExpectedFields = 9
- // Runtime-assert that the number of fields in the Task structs is 9, to
+ const taskExpectedFields = 10
+ // Runtime-assert that the number of fields in the Task structs match, to
// avoid missing additional fields if they're added later.
// all other type assertions are statically enforced by o2n() and tqF2R()
- oldType := reflect.TypeOf((*taskqueue.Task)(nil))
- newType := reflect.TypeOf((*tq.Task)(nil))
+ oldType := reflect.TypeOf((*taskqueue.Task)(nil)).Elem()
+ newType := reflect.TypeOf((*tq.Task)(nil)).Elem()
if oldType.NumField() != newType.NumField() ||
oldType.NumField() != taskExpectedFields {
panic(fmt.Errorf(
- "prod/taskqueue:init() field count differs: %v, %v",
- oldType, newType))
+ "prod/taskqueue:init() field count differs: %d, %d, %d",
+ oldType.NumField(), newType.NumField(), taskExpectedFields))
}
}
« no previous file with comments | « impl/prod/raw_datastore.go ('k') | service/datastore/checkfilter.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698