Skip to content

Commit

Permalink
Update backend.rs
Browse files Browse the repository at this point in the history
Fix Rust comments documentation
  • Loading branch information
AJIOB authored Mar 2, 2024
1 parent 34d2ec4 commit 7c5c8c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/services/redis/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ impl RedisBuilder {
/// currently supported schemes:
/// - no scheme: will be seen as "tcp"
/// - "tcp" or "redis": unsecured redis connections
/// - "rediss": secured redis connections
/// - "unix" or "redis+unix": unix socket connection
pub fn endpoint(&mut self, endpoint: &str) -> &mut Self {
if !endpoint.is_empty() {
Expand All @@ -130,11 +131,12 @@ impl RedisBuilder {
}

/// set the network address of redis cluster service.
/// This parameter is mutually exclusive with the endponit parameter.
/// This parameter is mutually exclusive with the endpoint parameter.
///
/// currently supported schemes:
/// - no scheme: will be seen as "tcp"
/// - "tcp" or "redis": unsecured redis connections
/// - "rediss": secured redis connections
/// - "unix" or "redis+unix": unix socket connection
pub fn cluster_endpoints(&mut self, cluster_endpoints: &str) -> &mut Self {
if !cluster_endpoints.is_empty() {
Expand Down

0 comments on commit 7c5c8c5

Please sign in to comment.