| 47 | } |
| 48 | |
| 49 | type inMemoryCache struct { |
| 50 | timeNow func() time.Time // +checklocksignore |
| 51 | |
| 52 | mu sync.Mutex |
| 53 | // +checklocks:mu |
| 54 | data map[blob.ID][]byte |
| 55 | // +checklocks:mu |
| 56 | times map[blob.ID]time.Time |
| 57 | } |
| 58 | |
| 59 | func (c *inMemoryCache) Get(_ context.Context, blobID blob.ID) ([]byte, time.Time, bool) { |
| 60 | c.mu.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected