Privatize fake sources, drop restating docs, remove boxed iterator in capped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
This commit is contained in:
1 parent
8b3f91dcb7
commit
d5a0373a75
9 files changed
+25
-38
No files matched your search
@@ -32,8 +32,7 @@ pub struct SdJournal {
|
||||
}
|
||||
|
||||
impl SdJournal {
|
||||
/// Must not fail or block. Reads `sources.journal_namespace` and
|
||||
/// `limits.max_lines` from `config`. Follow tasks stop on `shutdown`.
|
||||
/// Must not fail or block.
|
||||
pub fn new(config: &Config, shutdown: CancellationToken) -> Self {
|
||||
let ns = config.sources.journal_namespace.trim();
|
||||
Self {
|
||||
@@ -80,7 +79,6 @@ fn unavailable(e: impl std::fmt::Display) -> AppError {
|
||||
AppError::Unavailable(format!("journal: {e}"))
|
||||
}
|
||||
|
||||
/// Open the journal (inside the blocking thread) and apply unit/priority matches.
|
||||
fn open_filtered(ns: Option<&str>, q: &JournalQuery) -> Result<Journal, AppError> {
|
||||
let opts = OpenOptions::default();
|
||||
let mut j = match ns {
|
||||
|
||||
Reference in new issue
Block a user