| OLD | NEW |
| 1 package fuzzcache | 1 package fuzzcache |
| 2 | 2 |
| 3 import ( | 3 import ( |
| 4 "bytes" | 4 "bytes" |
| 5 "encoding/gob" | 5 "encoding/gob" |
| 6 "fmt" | 6 "fmt" |
| 7 | 7 |
| 8 "github.com/boltdb/bolt" | 8 "github.com/boltdb/bolt" |
| 9 » "go.skia.org/infra/fuzzer/go/frontend/data" | 9 » "go.skia.org/infra/fuzzer/go/data" |
| 10 ) | 10 ) |
| 11 | 11 |
| 12 const REPORT_KEY = "report-" | 12 const REPORT_KEY = "report-" |
| 13 | 13 |
| 14 var FUZZ_NAMES_KEY = []byte("fuzz_names") | 14 var FUZZ_NAMES_KEY = []byte("fuzz_names") |
| 15 | 15 |
| 16 type FuzzReportCache struct { | 16 type FuzzReportCache struct { |
| 17 DB *bolt.DB | 17 DB *bolt.DB |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 } | 113 } |
| 114 return nil | 114 return nil |
| 115 } | 115 } |
| 116 return b.DB.Update(storeFunc) | 116 return b.DB.Update(storeFunc) |
| 117 } | 117 } |
| 118 | 118 |
| 119 // Close closes the underlying data.FuzzReportCache, returning any errors the in
stance returns. | 119 // Close closes the underlying data.FuzzReportCache, returning any errors the in
stance returns. |
| 120 func (b *FuzzReportCache) Close() error { | 120 func (b *FuzzReportCache) Close() error { |
| 121 return b.DB.Close() | 121 return b.DB.Close() |
| 122 } | 122 } |
| OLD | NEW |