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
@@ -46,8 +46,7 @@ pub struct BollardDocker {
|
||||
}
|
||||
|
||||
impl BollardDocker {
|
||||
/// Never fails or blocks. Reads `sources.docker_socket` and
|
||||
/// `limits.max_tail` from `config`. Follow tasks stop on `shutdown`.
|
||||
/// Never fails or blocks.
|
||||
pub fn new(config: &Config, shutdown: CancellationToken) -> Self {
|
||||
Self {
|
||||
socket: config.sources.docker_socket.clone(),
|
||||
@@ -67,7 +66,6 @@ impl BollardDocker {
|
||||
.map_err(|e| map_error(&e, &self.socket_name()))
|
||||
}
|
||||
|
||||
/// The cached client, connecting on first successful use.
|
||||
fn client(&self) -> Result<Docker, AppError> {
|
||||
let mut guard = self.client.lock().unwrap_or_else(|p| p.into_inner());
|
||||
if let Some(c) = guard.as_ref() {
|
||||
|
||||
Reference in new issue
Block a user