OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |