chibenwa commented on code in PR #2060:
URL: https://github.com/apache/james-project/pull/2060#discussion_r1505427901


##########
server/container/guice/cassandra/src/main/java/org/apache/james/modules/mailbox/CassandraCacheSessionModule.java:
##########
@@ -72,12 +71,8 @@ static class InitializedCacheCluster {
         private final CqlSession cluster;
 
         @Inject
-        private InitializedCacheCluster(CqlSession cluster, 
ClusterConfiguration clusterConfiguration, KeyspacesConfiguration 
keyspacesConfiguration) {
-            this.cluster = cluster;
-
-            if (clusterConfiguration.shouldCreateKeyspace()) {
-                
KeyspaceFactory.createKeyspace(keyspacesConfiguration.cacheKeyspaceConfiguration(),
 cluster).block();
-            }
+        private InitializedCacheCluster(ResilientClusterProvider 
sessionProvider, KeyspacesConfiguration keyspacesConfiguration) {
+            this.cluster = 
sessionProvider.get(keyspacesConfiguration.cacheKeyspaceConfiguration());

Review Comment:
   Session provider creates it implicitly?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to