Skip to content

Commit 042cd88

Browse files
fix: clone ca_manager Arc to unbreak master build
`crates/agent-tunnel/src/listener.rs:152-163` moves the same `Arc<CaManager>` into both `AgentTunnelHandle` and `AgentTunnelListener`, which fails to compile: error[E0382]: use of moved value: `ca_manager` --> crates/agent-tunnel/src/listener.rs:162:13 Clone the Arc for the handle so the move into `Self` still type-checks. Root cause: PR #1773 added the `ca_manager` field to `AgentTunnelListener`; PR #1775 used `ca_manager` in the same `bind()` body for the handle initializer. Each PR's CI was green against its own base, but the merge of #1775 on top of #1773 produced a semantic conflict that wasn't textually conflicting, so GitHub merged it without re-running CI. This is the same fix originally proposed in #1790 (closed because #1781 incidentally carried it). Reapplied here because the revert removes that incidental fix.
1 parent c3f2066 commit 042cd88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/agent-tunnel/src/listener.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl AgentTunnelListener {
152152
let handle = AgentTunnelHandle {
153153
registry: Arc::clone(&registry),
154154
agent_connections: Arc::clone(&agent_connections),
155-
ca_manager,
155+
ca_manager: Arc::clone(&ca_manager),
156156
};
157157

158158
let listener = Self {

0 commit comments

Comments
 (0)