Skip to main content

read_lines

Function read_lines 

Source
pub fn read_lines(path: &Path) -> Vec<String>
Expand description

Read every intact line from path, dropping a torn trailing line.

std::process::exit on the signal path can truncate a concurrent write, so the last line may be a partial JSON document. Skipping unparseable lines is the whole tolerance: a drain must never fail because one record was cut.