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

Side by Side Diff: task_scheduler/go/db/cache.go

Issue 2296763008: [task scheduler] Move files from build_scheduler/ to task_scheduler/ (Closed) Base URL: https://skia.googlesource.com/buildbot@master
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 unified diff | Download patch
OLDNEW
1 package db 1 package db
2 2
3 import ( 3 import (
4 "fmt" 4 "fmt"
5 "sync" 5 "sync"
6 "time" 6 "time"
7 7
8 "github.com/skia-dev/glog" 8 "github.com/skia-dev/glog"
9 ) 9 )
10 10
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 func NewTaskCache(db DB, timePeriod time.Duration) (TaskCache, error) { 235 func NewTaskCache(db DB, timePeriod time.Duration) (TaskCache, error) {
236 tc := &taskCache{ 236 tc := &taskCache{
237 db: db, 237 db: db,
238 timePeriod: timePeriod, 238 timePeriod: timePeriod,
239 } 239 }
240 if err := tc.reset(); err != nil { 240 if err := tc.reset(); err != nil {
241 return nil, err 241 return nil, err
242 } 242 }
243 return tc, nil 243 return tc, nil
244 } 244 }
OLDNEW
« no previous file with comments | « build_scheduler/go/task_scheduler/testdata/testrepo.zip ('k') | task_scheduler/go/db/cache_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698