Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address comments
Signed-off-by: Danny Chiao <danny@tecton.ai>
  • Loading branch information
adchia committed Feb 18, 2022
commit 01afe5b062092b6d750feef621f2ffae9245948a
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ public RedisClusterStoreConfig getRedisClusterConfig() {
}

if (!this.config.containsKey("timeout") || this.config.get("timeout") == null) {
throw new RuntimeException("Redis cluster config does not have 'timeout' specified");
throw new IllegalArgumentException(
"Redis cluster config does not have 'timeout' specified");
}

boolean ssl = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public static RedisClientAdapter create(RedisClusterStoreConfig config) {
if (config.getSsl()) {
redisURI.setSsl(true);
}
redisURI.setTimeout(config.getTimeout());
return redisURI;
Comment thread
adchia marked this conversation as resolved.
})
.collect(Collectors.toList());
Expand Down