mirror of
https://github.com/openai/codex.git
synced 2026-11-03 19:53:25 +00:00
fix: map Noise identity generation errors
Co-authored-by: Codex noreply@openai.com
This commit is contained in:
co-authored by
Codex noreply@openai.com
parent
1db84eb913
commit
e7554548e0
@@ -305,9 +305,13 @@ pub async fn run_remote_environment(
|
||||
let processor = ConnectionProcessor::new(runtime_paths);
|
||||
let protocol_state = match config.relay_protocol {
|
||||
RemoteRelayProtocol::Legacy => RemoteRelayProtocolState::Legacy,
|
||||
RemoteRelayProtocol::Noise => {
|
||||
RemoteRelayProtocolState::Noise(NoiseChannelIdentity::generate()?)
|
||||
}
|
||||
RemoteRelayProtocol::Noise => RemoteRelayProtocolState::Noise(
|
||||
NoiseChannelIdentity::generate().map_err(|error| {
|
||||
ExecServerError::Protocol(format!(
|
||||
"failed to generate Noise relay identity: {error}"
|
||||
))
|
||||
})?,
|
||||
),
|
||||
};
|
||||
let mut backoff = Duration::from_secs(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user