fix(secret): fail early if secret connection fails (#1777)

This commit is contained in:
Ashley Wulber 2026-01-23 15:26:46 -05:00 committed by GitHub
parent 1839ad375f
commit 6b4a3d565c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,6 +162,10 @@ async fn secret_agent_stream_impl(
.await?;
proxy.register_with_capabilities(identifier, 1).await?;
// fail early if we can't connect, closing the channel
let _ = secret_service::SecretService::connect(secret_service::EncryptionType::Dh)
.await
.map_err(|e| Arc::new(e))?;
while let Some(request) = rx.recv().await {
match request {