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: 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: self review 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
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 de6ae35d5f2e579b493d5784f6282b66ca30d2a1..4a6fe25568471f190be10c6f80f0314055061c4a 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).PutMulti(fwdDeps)

Powered by Google App Engine
This is Rietveld 408576698