mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
Merge pull request #55 from nosqlbench/support-hosts
support hosts and host interchangeably
This commit is contained in:
commit
1b12d98638
@ -79,6 +79,11 @@ public class CQLSessionCache implements Shutdownable {
|
||||
String[] contactPoints = activityDef.getParams().getOptionalString("host")
|
||||
.map(h -> h.split(",")).orElse(null);
|
||||
|
||||
if (contactPoints == null) {
|
||||
contactPoints = activityDef.getParams().getOptionalString("hosts")
|
||||
.map(h -> h.split(",")).orElse(null);
|
||||
}
|
||||
|
||||
if (contactPoints != null) {
|
||||
builder.addContactPoints(contactPoints);
|
||||
}else if (scb.isEmpty()){
|
||||
|
Loading…
Reference in New Issue
Block a user