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

Unified Diff: dm/appengine/mutate/schedule_execution.go

Issue 2347973003: Refactor distributor API so that methods always get the Quest_Desc too. (Closed)
Patch Set: Created 4 years, 3 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: dm/appengine/mutate/schedule_execution.go
diff --git a/dm/appengine/mutate/schedule_execution.go b/dm/appengine/mutate/schedule_execution.go
index f65a166a9a206523867841e160f0b0b707721bf8..09fc6d0686c28f7151bf5da2f45a04ecfdaa84a1 100644
--- a/dm/appengine/mutate/schedule_execution.go
+++ b/dm/appengine/mutate/schedule_execution.go
@@ -80,8 +80,7 @@ func (s *ScheduleExecution) RollForward(c context.Context) (muts []tumble.Mutati
exAuth := &dm.Execution_Auth{Id: eid, Token: e.Token}
var distTok distributor.Token
- distTok, e.TimeToStop, err = dist.Run(
- distributor.NewTaskDescription(c, &q.Desc, exAuth, prevResult))
+ distTok, e.TimeToStop, err = dist.Run(&q.Desc, exAuth, prevResult)
if e.TimeToStop <= 0 {
e.TimeToStop = q.Desc.Meta.Timeouts.Stop.Duration()
}

Powered by Google App Engine
This is Rietveld 408576698