Update packages

pull/30/head
trivernis 10 months ago
parent 3a25a8b812
commit 7047dc7903
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

File diff suppressed because it is too large Load Diff

@ -45,7 +45,7 @@ path = "./mediarepo-socket"
path = "./mediarepo-worker" path = "./mediarepo-worker"
[dependencies.tokio] [dependencies.tokio]
version = "1.17.0" version = "1.21.2"
features = ["macros", "rt-multi-thread", "io-std", "io-util"] features = ["macros", "rt-multi-thread", "io-std", "io-util"]
[dependencies.tracing-subscriber] [dependencies.tracing-subscriber]

@ -34,7 +34,7 @@ default-features = false
features = ["migrate"] features = ["migrate"]
[dependencies.tokio] [dependencies.tokio]
version = "1.17.0" version = "1.21.2"
features = ["fs", "io-util", "io-std"] features = ["fs", "io-util", "io-std"]
[dependencies.config] [dependencies.config]

@ -26,6 +26,6 @@ features = ["runtime-tokio-native-tls", "macros"]
default-features = false default-features = false
[dependencies.tokio] [dependencies.tokio]
version = "1.17.0" version = "1.21.2"
features = ["fs", "io-std", "io-util"] features = ["fs", "io-std", "io-util"]

@ -26,8 +26,8 @@ path = "../mediarepo-logic"
path = "../mediarepo-worker" path = "../mediarepo-worker"
[dependencies.tokio] [dependencies.tokio]
version = "1.17.0" version = "1.21.2"
features = ["net"] features = ["net", "rt", "tracing"]
[dependencies.chrono] [dependencies.chrono]
version = "0.4.19" version = "0.4.19"

@ -38,17 +38,15 @@ pub fn start_tcp_server(
let address = SocketAddr::new(ip, port); let address = SocketAddr::new(ip, port);
let address_string = address.to_string(); let address_string = address.to_string();
let join_handle = tokio::task::Builder::new() let join_handle = tokio::task::spawn(async move {
.name("mediarepo_tcp::listen") get_builder::<EncryptedListener<TcpListener>>(address)
.spawn(async move { .insert::<SubsystemKey>(subsystem)
get_builder::<EncryptedListener<TcpListener>>(address) .insert_all(shared_data)
.insert::<SubsystemKey>(subsystem) .insert::<SizeMetadataKey>(Default::default())
.insert_all(shared_data) .build_server()
.insert::<SizeMetadataKey>(Default::default()) .await
.build_server() .expect("Failed to start tcp server")
.await });
.expect("Failed to start tcp server")
});
Ok((address_string, join_handle)) Ok((address_string, join_handle))
} }
@ -66,17 +64,15 @@ pub fn create_unix_socket(
if path.exists() { if path.exists() {
fs::remove_file(&path)?; fs::remove_file(&path)?;
} }
let join_handle = tokio::task::Builder::new() let join_handle = tokio::task::spawn(async move {
.name("mediarepo_unix_socket::listen") get_builder::<UnixListener>(path)
.spawn(async move { .insert::<SubsystemKey>(subsystem)
get_builder::<UnixListener>(path) .insert_all(shared_data)
.insert::<SubsystemKey>(subsystem) .insert::<SizeMetadataKey>(Default::default())
.insert_all(shared_data) .build_server()
.insert::<SizeMetadataKey>(Default::default()) .await
.build_server() .expect("Failed to create unix domain socket");
.await });
.expect("Failed to create unix domain socket");
});
Ok(join_handle) Ok(join_handle)
} }

@ -19,7 +19,7 @@ path = "../mediarepo-logic"
path = "../mediarepo-database" path = "../mediarepo-database"
[dependencies.tokio] [dependencies.tokio]
version = "1.17.0" version = "1.21.2"
features = ["macros"] features = ["macros"]
[dependencies.chrono] [dependencies.chrono]

Loading…
Cancel
Save