File tree Expand file tree Collapse file tree
openshell-server/src/sandbox Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -701,8 +701,8 @@ pub async fn sandbox_ssh_proxy(
701701 // exists but hasn't reached Ready phase yet. This is a transient state
702702 // after sandbox allocation — retry with backoff instead of failing
703703 // immediately.
704- const MAX_CONNECT_WAIT : std :: time :: Duration = std :: time :: Duration :: from_secs ( 60 ) ;
705- const INITIAL_BACKOFF : std :: time :: Duration = std :: time :: Duration :: from_secs ( 1 ) ;
704+ const MAX_CONNECT_WAIT : Duration = Duration :: from_secs ( 60 ) ;
705+ const INITIAL_BACKOFF : Duration = Duration :: from_secs ( 1 ) ;
706706
707707 let start = std:: time:: Instant :: now ( ) ;
708708 let mut backoff = INITIAL_BACKOFF ;
@@ -734,7 +734,7 @@ pub async fn sandbox_ssh_proxy(
734734 "sandbox not yet ready (HTTP 412), retrying in {backoff:?}"
735735 ) ;
736736 tokio:: time:: sleep ( backoff) . await ;
737- backoff = ( backoff * 2 ) . min ( std :: time :: Duration :: from_secs ( 8 ) ) ;
737+ backoff = ( backoff * 2 ) . min ( Duration :: from_secs ( 8 ) ) ;
738738 continue ;
739739 }
740740 return Err ( miette:: miette!(
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use std::collections::HashMap;
66const PLACEHOLDER_PREFIX : & str = "openshell:resolve:env:" ;
77
88#[ derive( Debug , Clone , Default ) ]
9- pub ( crate ) struct SecretResolver {
9+ pub struct SecretResolver {
1010 by_placeholder : HashMap < String , String > ,
1111}
1212
Original file line number Diff line number Diff line change @@ -1011,7 +1011,7 @@ fn inject_pod_template(
10111011 mut pod_template : serde_json:: Value ,
10121012 template : & SandboxTemplate ,
10131013 gpu : bool ,
1014- default_image : & str ,
1014+ _default_image : & str ,
10151015 image_pull_policy : & str ,
10161016 sandbox_id : & str ,
10171017 sandbox_name : & str ,
You can’t perform that action at this time.
0 commit comments