This commit is contained in:
Kovid Goyal 2025-02-05 17:04:14 +05:30
parent d22c8f5878
commit bfbb54cdf3
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -33,7 +33,7 @@ func wait_for_file_to_grow(file_name string, limit int64) (err error) {
return
}
func read_input(input_file *os.File, input_file_name string, input_channel chan<- input_line_struct, follow bool, count_carriage_returns bool) {
func read_input(input_file *os.File, input_file_name string, input_channel chan<- input_line_struct, follow_file bool, count_carriage_returns bool) {
const buf_capacity = 8192
buf := make([]byte, buf_capacity)
output_buf := strings.Builder{}
@ -106,7 +106,7 @@ func read_input(input_file *os.File, input_file_name string, input_channel chan<
err = nil
}
}
if !follow {
if !follow_file {
break
}
if errors.Is(err, io.EOF) {