mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-26 05:56:50 +00:00
Feature/scanner performance optimization (#498)
* Refactor: reimplement scanner Signed-off-by: RustFS Developer <dandan@rustfs.com> * comment lock Signed-off-by: junxiang Mu <1948535941@qq.com> * remove dirty file Signed-off-by: junxiang Mu <1948535941@qq.com> * Fix: fix rebase * fix(scanner): Improve error handling and logging Signed-off-by: junxiang Mu <1948535941@qq.com> --------- Signed-off-by: RustFS Developer <dandan@rustfs.com> Signed-off-by: junxiang Mu <1948535941@qq.com> Co-authored-by: RustFS Developer <dandan@rustfs.com>
This commit is contained in:
@@ -751,7 +751,7 @@ mod tests {
|
||||
#[test]
|
||||
fn test_detect_file_type_utf8_text() {
|
||||
// Test UTF-8 text detection
|
||||
let utf8_content = "Hello, 世界! 🌍".as_bytes();
|
||||
let utf8_content = "Hello, World! 🌍".as_bytes();
|
||||
let result = S3Client::detect_file_type(None, utf8_content);
|
||||
match result {
|
||||
DetectedFileType::Text => {}
|
||||
|
||||
Reference in New Issue
Block a user