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/dummy/dummy.go

Issue 2512093002: Add support for Pull Queues to prod implementation. (Closed)
Patch Set: use time.Duration for leaseTime Created 4 years, 1 month 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 | « filter/featureBreaker/tq.go ('k') | impl/memory/taskqueue.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/dummy/dummy.go
diff --git a/impl/dummy/dummy.go b/impl/dummy/dummy.go
index 30e54b7f13b780d256b292476557422fbdde4792..599dba5d5b38ff263c2a6f2e7f823eb2a30a4c7f 100644
--- a/impl/dummy/dummy.go
+++ b/impl/dummy/dummy.go
@@ -125,11 +125,14 @@ func Memcache() memcache.RawInterface { return dummyMCInst }
type tq struct{}
-func (tq) AddMulti([]*taskqueue.Task, string, taskqueue.RawTaskCB) error { panic(ni()) }
-func (tq) DeleteMulti([]*taskqueue.Task, string, taskqueue.RawCB) error { panic(ni()) }
-func (tq) Purge(string) error { panic(ni()) }
-func (tq) Stats([]string, taskqueue.RawStatsCB) error { panic(ni()) }
-func (tq) GetTestable() taskqueue.Testable { return nil }
+func (tq) AddMulti([]*taskqueue.Task, string, taskqueue.RawTaskCB) error { panic(ni()) }
+func (tq) DeleteMulti([]*taskqueue.Task, string, taskqueue.RawCB) error { panic(ni()) }
+func (tq) Lease(int, string, time.Duration) ([]*taskqueue.Task, error) { panic(ni()) }
+func (tq) LeaseByTag(int, string, time.Duration, string) ([]*taskqueue.Task, error) { panic(ni()) }
+func (tq) ModifyLease(*taskqueue.Task, string, time.Duration) error { panic(ni()) }
+func (tq) Purge(string) error { panic(ni()) }
+func (tq) Stats([]string, taskqueue.RawStatsCB) error { panic(ni()) }
+func (tq) GetTestable() taskqueue.Testable { return nil }
var dummyTQInst = tq{}
« no previous file with comments | « filter/featureBreaker/tq.go ('k') | impl/memory/taskqueue.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698