File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -264,10 +264,7 @@ pub fn dstack_agent_address() -> String {
264264 return address;
265265 }
266266 // Try new path first, fall back to old path for backward compatibility
267- const SOCKET_PATHS : & [ & str ] = & [
268- "/var/run/dstack/dstack.sock" ,
269- "/var/run/dstack.sock" ,
270- ] ;
267+ const SOCKET_PATHS : & [ & str ] = & [ "/var/run/dstack/dstack.sock" , "/var/run/dstack.sock" ] ;
271268 for path in SOCKET_PATHS {
272269 if std:: path:: Path :: new ( path) . exists ( ) {
273270 return format ! ( "unix:{}" , path) ;
Original file line number Diff line number Diff line change @@ -37,10 +37,7 @@ fn get_endpoint(endpoint: Option<&str>) -> String {
3737 return sim_endpoint;
3838 }
3939 // Try new path first, fall back to old path for backward compatibility
40- const SOCKET_PATHS : & [ & str ] = & [
41- "/var/run/dstack/dstack.sock" ,
42- "/var/run/dstack.sock" ,
43- ] ;
40+ const SOCKET_PATHS : & [ & str ] = & [ "/var/run/dstack/dstack.sock" , "/var/run/dstack.sock" ] ;
4441 for path in SOCKET_PATHS {
4542 if std:: path:: Path :: new ( path) . exists ( ) {
4643 return path. to_string ( ) ;
Original file line number Diff line number Diff line change @@ -22,10 +22,7 @@ fn get_tappd_endpoint(endpoint: Option<&str>) -> String {
2222 return sim_endpoint;
2323 }
2424 // Try new path first, fall back to old path for backward compatibility
25- const SOCKET_PATHS : & [ & str ] = & [
26- "/var/run/dstack/tappd.sock" ,
27- "/var/run/tappd.sock" ,
28- ] ;
25+ const SOCKET_PATHS : & [ & str ] = & [ "/var/run/dstack/tappd.sock" , "/var/run/tappd.sock" ] ;
2926 for path in SOCKET_PATHS {
3027 if std:: path:: Path :: new ( path) . exists ( ) {
3128 return path. to_string ( ) ;
You can’t perform that action at this time.
0 commit comments