refactor: Simplify content streaming by consolidating filter parameters
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -206,14 +206,6 @@ impl AsyncItemService {
|
||||
// Get binary status using streaming approach
|
||||
let (_, _, is_binary) = self.get_item_content_info_streaming(
|
||||
item_id,
|
||||
head_bytes,
|
||||
head_words,
|
||||
head_lines,
|
||||
tail_bytes,
|
||||
tail_words,
|
||||
tail_lines,
|
||||
line_start,
|
||||
line_end,
|
||||
None
|
||||
).await?;
|
||||
is_binary
|
||||
@@ -233,15 +225,6 @@ impl AsyncItemService {
|
||||
item_service.get_item_content_info_streaming(
|
||||
&conn,
|
||||
item_id,
|
||||
head_bytes,
|
||||
head_words,
|
||||
head_lines,
|
||||
tail_bytes,
|
||||
tail_words,
|
||||
tail_lines,
|
||||
line_start,
|
||||
line_end,
|
||||
grep,
|
||||
None
|
||||
).map(|(reader, _, _)| reader)
|
||||
})
|
||||
@@ -342,15 +325,6 @@ impl AsyncItemService {
|
||||
item_service.get_item_content_info_streaming(
|
||||
&conn,
|
||||
item_id,
|
||||
head_bytes,
|
||||
head_words,
|
||||
head_lines,
|
||||
tail_bytes,
|
||||
tail_words,
|
||||
tail_lines,
|
||||
line_start,
|
||||
line_end,
|
||||
grep,
|
||||
None
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user