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

Unified Diff: appengine/cmd/dm/mutate/add_finished_deps.go

Issue 1537883002: Initial distributor implementation (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: fix imports and make dummy.go a real file Created 4 years, 6 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 | « appengine/cmd/dm/mutate/add_deps_test.go ('k') | appengine/cmd/dm/mutate/add_finished_deps_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/cmd/dm/mutate/add_finished_deps.go
diff --git a/appengine/cmd/dm/mutate/add_finished_deps.go b/appengine/cmd/dm/mutate/add_finished_deps.go
index 1e31fc287d74af1989e1ff3d892d2a27c3db2db2..42490ac5d7865398371a6e33f44266572f582b46 100644
--- a/appengine/cmd/dm/mutate/add_finished_deps.go
+++ b/appengine/cmd/dm/mutate/add_finished_deps.go
@@ -28,7 +28,7 @@ type AddFinishedDeps struct {
// Root implements tumble.Mutation
func (f *AddFinishedDeps) Root(c context.Context) *datastore.Key {
- return datastore.Get(c).KeyForObj(&model.Attempt{ID: *f.Auth.Id.AttemptID()})
+ return model.AttemptKeyFromID(c, f.Auth.Id.AttemptID())
}
// RollForward implements tumble.Mutation
@@ -49,7 +49,7 @@ func (f *AddFinishedDeps) RollForward(c context.Context) (muts []tumble.Mutation
muts = append(muts, &AddBackDep{Dep: d.Edge()})
}
for _, q := range f.MergeQuests {
- muts = append(muts, &MergeQuest{q})
+ muts = append(muts, &MergeQuest{Quest: q})
}
return muts, datastore.Get(c).Put(fwdDeps)
« no previous file with comments | « appengine/cmd/dm/mutate/add_deps_test.go ('k') | appengine/cmd/dm/mutate/add_finished_deps_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698