projects
/
demos
/
kafka
/
chat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TMP:test:FIX
[demos/kafka/chat]
/
src
/
main
/
java
/
de
/
juplo
/
kafka
/
chat
/
backend
/
storage
/
mongodb
/
MongoDbStorageConfiguration.java
diff --git
a/src/main/java/de/juplo/kafka/chat/backend/storage/mongodb/MongoDbStorageConfiguration.java
b/src/main/java/de/juplo/kafka/chat/backend/storage/mongodb/MongoDbStorageConfiguration.java
index
e6f7149
..
7c5d9cb
100644
(file)
--- a/
src/main/java/de/juplo/kafka/chat/backend/storage/mongodb/MongoDbStorageConfiguration.java
+++ b/
src/main/java/de/juplo/kafka/chat/backend/storage/mongodb/MongoDbStorageConfiguration.java
@@
-1,7
+1,8
@@
-package de.juplo.kafka.chat.backend.
persistence.
storage.mongodb;
+package de.juplo.kafka.chat.backend.storage.mongodb;
-import de.juplo.kafka.chat.backend.persistence.ShardingStrategy;
-import de.juplo.kafka.chat.backend.persistence.StorageStrategy;
+import de.juplo.kafka.chat.backend.ChatBackendProperties;
+import de.juplo.kafka.chat.backend.implementation.ShardingStrategy;
+import de.juplo.kafka.chat.backend.implementation.StorageStrategy;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@@
-18,11
+19,12
@@
public class MongoDbStorageConfiguration
public StorageStrategy storageStrategy(
ChatRoomRepository chatRoomRepository,
MessageRepository messageRepository,
public StorageStrategy storageStrategy(
ChatRoomRepository chatRoomRepository,
MessageRepository messageRepository,
-
ShardingStrategy shardingStrategy
)
+
ChatBackendProperties properties
)
{
return new MongoDbStorageStrategy(
chatRoomRepository,
messageRepository,
{
return new MongoDbStorageStrategy(
chatRoomRepository,
messageRepository,
- shardingStrategy);
+ properties.getProjectreactor().getLoggingLevel(),
+ properties.getProjectreactor().isShowOperatorLine());
}
}
}
}