Skip to content

Commit 00886c0

Browse files
committed
Minor Fixes
1 parent 057a4ad commit 00886c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

my-http-server-core/src/http_server.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ pub async fn start_http_1_unix_socket(
268268
logger: Arc<dyn Logger + Send + Sync + 'static>,
269269
connections: Arc<AtomicI64>,
270270
) {
271+
let _ = tokio::fs::remove_file(unix_socket.as_str()).await;
271272
let listener = tokio::net::UnixListener::bind(unix_socket.as_str());
272273

273274
if let Err(err) = &listener {

0 commit comments

Comments
 (0)