We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 139bb34 commit 4d786e1Copy full SHA for 4d786e1
go/kbfs/libkbfs/favorites.go
@@ -286,12 +286,18 @@ func (f *Favorites) writeCacheToDisk(ctx context.Context) error {
286
// InitForTest starts the Favorites cache's internal processing loop without
287
// loading cached favorites from disk.
288
func (f *Favorites) InitForTest() {
289
+ if f.disabled {
290
+ return
291
+ }
292
go f.loop()
293
}
294
295
// Initialize loads the favorites cache from disk and starts listening for
296
// requests asynchronously.
297
func (f *Favorites) Initialize(ctx context.Context) {
298
299
300
301
// load cache from disk
302
err := f.readCacheFromDisk(ctx)
303
if err != nil {
0 commit comments