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

Side by Side Diff: task_scheduler/go/db/memory.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
« no previous file with comments | « task_scheduler/go/db/local_db/local_db_test.go ('k') | task_scheduler/go/db/memory_test.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 package db 1 package db
2 2
3 import ( 3 import (
4 "fmt" 4 "fmt"
5 "sort" 5 "sort"
6 "sync" 6 "sync"
7 "time" 7 "time"
8 8
9 "go.skia.org/infra/go/util" 9 "go.skia.org/infra/go/util"
10 10
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 111 }
112 112
113 // NewInMemoryDB returns an extremely simple, inefficient, in-memory DB 113 // NewInMemoryDB returns an extremely simple, inefficient, in-memory DB
114 // implementation. 114 // implementation.
115 func NewInMemoryDB() DB { 115 func NewInMemoryDB() DB {
116 db := &inMemoryDB{ 116 db := &inMemoryDB{
117 tasks: map[string]*Task{}, 117 tasks: map[string]*Task{},
118 } 118 }
119 return db 119 return db
120 } 120 }
OLDNEW
« no previous file with comments | « task_scheduler/go/db/local_db/local_db_test.go ('k') | task_scheduler/go/db/memory_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698