Check cached sources with upstream after the cache TTL (closes #69) (#350)
check / check (push) Canceled after 0s
check / check (push) Canceled after 0s
This commit was merged in pull request #350.
This commit is contained in:
1 parent
1379497897
commit
e34463acf8
28 files changed
+1689
-269
No files matched your search
@@ -24,9 +24,10 @@ func NewMock(fsys fs.FS) *MockFetcher {
|
||||
return &MockFetcher{fs: fsys}
|
||||
}
|
||||
|
||||
// Fetch retrieves the source's content from the mock filesystem.
|
||||
// Fetch retrieves the source's content from the mock filesystem. It ignores
|
||||
// ifNoneMatch and ifModifiedSince, and always sends the content.
|
||||
func (m *MockFetcher) Fetch(
|
||||
ctx context.Context, source imagerequest.Source,
|
||||
ctx context.Context, source imagerequest.Source, _, _ string,
|
||||
) (*FetchResult, error) {
|
||||
// Check context cancellation
|
||||
select {
|
||||
|
||||
Reference in new issue
Block a user