update filestorage
Build and Publish / Metadata (push) Has been cancelled
Build and Publish / BuildAndDeployAmd64 (push) Has been cancelled

This commit is contained in:
2026-04-05 17:53:49 +02:00
parent 294094a96a
commit 83c8f6eae2
+5
View File
@@ -56,6 +56,11 @@ func (fs *FileStore) Search(ctx context.Context, query string, limit int) ([]web
var matchingLines []string
scanner := bufio.NewScanner(file)
// Use a 10MB buffer for the scanner to handle large trace/log entries
const maxCapacity = 10 * 1024 * 1024
buf := make([]byte, 64*1024)
scanner.Buffer(buf, maxCapacity)
// Lowercase query for case-insensitive search
lowerQuery := strings.ToLower(query)