From 43a6e9e09fa724ea395fef6f1d5841b01f8a3029 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 29 Nov 2025 00:30:16 -0800 Subject: [PATCH] fmt --- weed/filer/reader_at.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/weed/filer/reader_at.go b/weed/filer/reader_at.go index baf63e630..2d2a58597 100644 --- a/weed/filer/reader_at.go +++ b/weed/filer/reader_at.go @@ -35,8 +35,9 @@ var _ = io.Closer(&ChunkReadAt{}) // - No high availability (single filer address, no automatic failover) // // For NEW code, especially mount operations, use wdclient.FilerClient instead: -// filerClient := wdclient.NewFilerClient(filerAddresses, grpcDialOption, dataCenter, opts) -// lookupFn := filerClient.GetLookupFileIdFunction() +// +// filerClient := wdclient.NewFilerClient(filerAddresses, grpcDialOption, dataCenter, opts) +// lookupFn := filerClient.GetLookupFileIdFunction() // // This provides: // - Bounded cache with configurable size @@ -56,7 +57,7 @@ func LookupFn(filerClient filer_pb.FilerClient) wdclient.LookupFileIdFunctionTyp var vidCacheLock sync.RWMutex cacheSize := 0 const maxCacheSize = 10000 // Simple bound to prevent unbounded growth - + return func(ctx context.Context, fileId string) (targetUrls []string, err error) { vid := VolumeId(fileId) vidCacheLock.RLock()