File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ lazy_static! {
15
15
log_setup( ) ;
16
16
let config_file = String :: from( "./run_config.toml" ) ;
17
17
let config_file =
18
- :: std:: fs:: read_to_string( config_file) . expect( "Failed to read configuration file" ) ;
18
+ std:: fs:: read_to_string( config_file) . expect( "Failed to read configuration file" ) ;
19
19
let config: ServiceConfig =
20
20
toml:: from_str( & config_file) . expect( "Failed to parse service configuration" ) ;
21
21
ServiceBuilder :: build_service( & config) . expect( "Failed to initialize service" )
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ fn main() -> Result<()> {
65
65
let _ = flag:: register ( SIGINT , kill_signal. clone ( ) ) ?;
66
66
let _ = flag:: register ( SIGHUP , reload_signal. clone ( ) ) ?;
67
67
68
- let mut config_file = :: std:: fs:: read_to_string ( opts. config . clone ( ) ) . map_err ( |e| {
68
+ let mut config_file = std:: fs:: read_to_string ( opts. config . clone ( ) ) . map_err ( |e| {
69
69
Error :: new (
70
70
e. kind ( ) ,
71
71
format ! ( "Failed to read config file from path: {}" , opts. config) ,
@@ -122,7 +122,7 @@ fn main() -> Result<()> {
122
122
drop ( listener) ;
123
123
drop ( threadpool) ;
124
124
125
- config_file = :: std:: fs:: read_to_string ( opts. config . clone ( ) ) . map_err ( |e| {
125
+ config_file = std:: fs:: read_to_string ( opts. config . clone ( ) ) . map_err ( |e| {
126
126
Error :: new (
127
127
e. kind ( ) ,
128
128
format ! ( "Failed to read config file from path: {}" , opts. config) ,
@@ -149,7 +149,7 @@ fn main() -> Result<()> {
149
149
trace ! ( "handle_request egress" ) ;
150
150
} ) ;
151
151
} else {
152
- :: std:: thread:: sleep ( Duration :: from_millis (
152
+ std:: thread:: sleep ( Duration :: from_millis (
153
153
config
154
154
. core_settings
155
155
. idle_listener_sleep_duration
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ fn config_to_toml(file_name: String) -> ServiceConfig {
22
22
panic ! ( ) ;
23
23
}
24
24
25
- let config_file = :: std:: fs:: read_to_string ( new_config_path. clone ( ) )
25
+ let config_file = std:: fs:: read_to_string ( new_config_path. clone ( ) )
26
26
. map_err ( |e| {
27
27
error ! (
28
28
"Failed to read config file from path: {:#?}\n Error: {:#?}" ,
You can’t perform that action at this time.
0 commit comments