Commit 7f177cb 1 parent cb9de6e commit 7f177cb Copy full SHA for 7f177cb
File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,13 @@ impl Profile {
22
22
}
23
23
24
24
pub fn get_socket_path ( ) -> & ' static str {
25
- let brew_var =
26
- std:: env:: var ( "HOMEBREW_VAR" ) . unwrap_or_else ( |_| "/opt/homebrew/var" . to_string ( ) ) ;
27
-
28
- let prod_socket_path = format ! ( "{}/run/turtle-harbor.sock" , brew_var) ;
25
+ const PROD_SOCKET_PATH : & str = "/opt/homebrew/var/run/turtle-harbor.sock" ;
29
26
const DEV_SOCKET_PATH : & str = "/tmp/turtle-harbor.sock" ;
30
27
31
28
let current_profile = Profile :: current ( ) ;
32
29
let path = match current_profile {
33
30
Profile :: Development => DEV_SOCKET_PATH ,
34
- Profile :: Production => prod_socket_path . as_str ( ) ,
31
+ Profile :: Production => PROD_SOCKET_PATH ,
35
32
} ;
36
33
tracing:: debug!( socket_path = path, "Using socket path" ) ;
37
34
path
You can’t perform that action at this time.
0 commit comments