Skip to content

Commit

Permalink
remove scheme changes
Browse files Browse the repository at this point in the history
Signed-off-by: Shivshankar-Reddy <[email protected]>
  • Loading branch information
Shivshankar-Reddy committed Apr 17, 2024
1 parent dbbb173 commit 766465f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/cli_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ void parseRedisUri(const char *uri, const char* tool_name, cliConnInfo *connInfo
UNUSED(tls_flag);
#endif

const char *scheme = "valkey://";
const char *tlsscheme = "valkeys://";
const char *scheme = "redis://";
const char *tlsscheme = "rediss://";
const char *curr = uri;
const char *end = uri + strlen(uri);
const char *userinfo, *username, *port, *host, *path;
Expand All @@ -330,7 +330,7 @@ void parseRedisUri(const char *uri, const char* tool_name, cliConnInfo *connInfo
*tls_flag = 1;
curr += strlen(tlsscheme);
#else
fprintf(stderr,"valkeys:// is only supported when %s is compiled with OpenSSL\n", tool_name);
fprintf(stderr,"rediss:// is only supported when %s is compiled with OpenSSL\n", tool_name);
exit(1);
#endif
} else if (!strncasecmp(scheme, curr, strlen(scheme))) {
Expand Down
4 changes: 2 additions & 2 deletions tests/support/benchmark.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ proc redisbenchmark {host port {opts {}}} {
}

proc redisbenchmarkuri {host port {opts {}}} {
set cmd [list src/valkey-benchmark -u valkey://$host:$port]
set cmd [list src/valkey-benchmark -u redis://$host:$port]
lappend cmd {*}[redisbenchmark_tls_config "tests"]
lappend cmd {*}$opts
return $cmd
}

proc redisbenchmarkuriuserpass {host port user pass {opts {}}} {
set cmd [list src/valkey-benchmark -u valkey://$user:$pass@$host:$port]
set cmd [list src/valkey-benchmark -u redis://$user:$pass@$host:$port]
lappend cmd {*}[redisbenchmark_tls_config "tests"]
lappend cmd {*}$opts
return $cmd
Expand Down

0 comments on commit 766465f

Please sign in to comment.