mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-08-31 05:07:09 +00:00
ugh
This commit is contained in:
@@ -133,10 +133,9 @@ func (vc *validationCache) getOrFetch(ctx context.Context, cacheKey string, fetc
|
||||
}
|
||||
}
|
||||
|
||||
// Mark as in-flight and create done channel if needed
|
||||
if entry.done == nil {
|
||||
entry.done = make(chan struct{})
|
||||
}
|
||||
// Mark as in-flight and create fresh done channel for this fetch
|
||||
// IMPORTANT: Always create a new channel - a closed channel is not nil
|
||||
entry.done = make(chan struct{})
|
||||
entry.inFlight = true
|
||||
done := entry.done
|
||||
entry.mu.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user