Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix(volume-rust): resolve gRPC bind address from hostname

Chris Lubb23939b36d0
diff --git a/seaweed-volume/src/main.rs b/seaweed-volume/src/main.rs
index 427e3b7e5c..0b4d243607 100644
--- a/seaweed-volume/src/main.rs
+++ b/seaweed-volume/src/main.rs
@@ -606,7 +606,11 @@ async fn run(
let grpc_tls_acceptor = grpc_tls_acceptor.clone();
let mut shutdown_rx = shutdown_tx.subscribe();
tokio::spawn(async move {
- let addr = grpc_addr.parse().expect("Invalid gRPC address");
+ let addr = tokio::net::lookup_host(&grpc_addr)
+ .await
+ .expect("Failed to resolve gRPC address")
+ .next()
+ .expect("No addresses found for gRPC bind address");
let grpc_service = VolumeGrpcService {
state: grpc_state.clone(),
};