DATACOUCH-509 - couchbaseClientFactory needs to take cluster from configurer

This commit is contained in:
Michael Nitschinger
2020-03-09 10:11:19 +01:00
parent 1ee0045f0e
commit e918fa8793

View File

@@ -86,8 +86,8 @@ public abstract class AbstractCouchbaseConfiguration implements CouchbaseConfigu
}
@Bean
public CouchbaseClientFactory couchbaseClientFactory(Cluster couchbaseCluster) {
return new SimpleCouchbaseClientFactory(couchbaseCluster, getBucketName(), getScopeName());
public CouchbaseClientFactory couchbaseClientFactory() throws Exception {
return new SimpleCouchbaseClientFactory(couchbaseConfigurer().couchbaseCluster(), getBucketName(), getScopeName());
}
@Override