We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd242e0 commit 5846501Copy full SHA for 5846501
core/src/services/hdfs/backend.rs
@@ -75,8 +75,7 @@ impl HdfsBuilder {
75
/// - `hdfs://127.0.0.1:9000`: connect to hdfs cluster.
76
pub fn name_node(mut self, name_node: &str) -> Self {
77
if !name_node.is_empty() {
78
- // Trim trailing `/` so that we can accept `http://127.0.0.1:9000/`
79
- self.config.name_node = Some(name_node.trim_end_matches('/').to_string())
+ self.config.name_node = Some(name_node.to_string())
80
}
81
82
self
0 commit comments