mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-19 15:23:36 +00:00
Use sync/atomic package, now that we are at Go 1.19
This commit is contained in:
1 parent
6dce4b2478
commit
a134b1b608
3 files changed
+16
-15
No files matched your search
Vendored
+1
-1
@@ -17,7 +17,7 @@ import (
|
||||
// Call NewFileCache and wait for it to be ready
|
||||
func callNewFileCache(name, cacheSize, cacheFolder string, maxItems int, getReader ReadFunc) *fileCache {
|
||||
fc := NewFileCache(name, cacheSize, cacheFolder, maxItems, getReader).(*fileCache)
|
||||
Eventually(func() bool { return fc.ready.Get() }).Should(BeTrue())
|
||||
Eventually(func() bool { return fc.ready.Load() }).Should(BeTrue())
|
||||
return fc
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user