From 28ff30ded078dd7d07259b03fba1f478d4f0be96 Mon Sep 17 00:00:00 2001 From: Patrik Nordwall Date: Fri, 10 Nov 2023 13:08:29 +0100 Subject: [PATCH] sample: Dialect config in samples (#1066) * seems we forgot to update these --- .../src/main/resources/persistence.conf | 7 +------ .../src/main/resources/persistence.conf | 7 +------ .../src/main/resources/serialization.conf | 2 -- .../src/main/resources/persistence.conf | 5 +---- .../src/main/resources/persistence.conf | 5 +---- .../src/main/resources/persistence.conf | 5 +---- .../src/main/resources/persistence.conf | 5 +---- 7 files changed, 6 insertions(+), 30 deletions(-) delete mode 100644 samples/grpc/shopping-analytics-service-scala/src/main/resources/serialization.conf diff --git a/samples/grpc/shopping-analytics-service-java/src/main/resources/persistence.conf b/samples/grpc/shopping-analytics-service-java/src/main/resources/persistence.conf index 6caa7e7c2..e70acc5e2 100644 --- a/samples/grpc/shopping-analytics-service-java/src/main/resources/persistence.conf +++ b/samples/grpc/shopping-analytics-service-java/src/main/resources/persistence.conf @@ -1,3 +1,4 @@ +akka.persistence.r2dbc.connection-factory = ${akka.persistence.r2dbc.postgres} akka { persistence { journal { @@ -7,19 +8,13 @@ akka { plugin = "akka.persistence.r2dbc.snapshot" } r2dbc { - # yugabyte or postgres - dialect = "postgres" connection-factory { - driver = "postgres" - host = "localhost" host = ${?DB_HOST} - port = 5432 database = "postgres" user = "postgres" user = ${?DB_USER} - password = "postgres" password = ${?DB_PASSWORD} } diff --git a/samples/grpc/shopping-analytics-service-scala/src/main/resources/persistence.conf b/samples/grpc/shopping-analytics-service-scala/src/main/resources/persistence.conf index 6caa7e7c2..e70acc5e2 100644 --- a/samples/grpc/shopping-analytics-service-scala/src/main/resources/persistence.conf +++ b/samples/grpc/shopping-analytics-service-scala/src/main/resources/persistence.conf @@ -1,3 +1,4 @@ +akka.persistence.r2dbc.connection-factory = ${akka.persistence.r2dbc.postgres} akka { persistence { journal { @@ -7,19 +8,13 @@ akka { plugin = "akka.persistence.r2dbc.snapshot" } r2dbc { - # yugabyte or postgres - dialect = "postgres" connection-factory { - driver = "postgres" - host = "localhost" host = ${?DB_HOST} - port = 5432 database = "postgres" user = "postgres" user = ${?DB_USER} - password = "postgres" password = ${?DB_PASSWORD} } diff --git a/samples/grpc/shopping-analytics-service-scala/src/main/resources/serialization.conf b/samples/grpc/shopping-analytics-service-scala/src/main/resources/serialization.conf deleted file mode 100644 index c67ca0edd..000000000 --- a/samples/grpc/shopping-analytics-service-scala/src/main/resources/serialization.conf +++ /dev/null @@ -1,2 +0,0 @@ -akka.actor.serialization-bindings { -} diff --git a/samples/grpc/shopping-cart-service-java/src/main/resources/persistence.conf b/samples/grpc/shopping-cart-service-java/src/main/resources/persistence.conf index b9e74dab8..e70acc5e2 100644 --- a/samples/grpc/shopping-cart-service-java/src/main/resources/persistence.conf +++ b/samples/grpc/shopping-cart-service-java/src/main/resources/persistence.conf @@ -1,3 +1,4 @@ +akka.persistence.r2dbc.connection-factory = ${akka.persistence.r2dbc.postgres} akka { persistence { journal { @@ -7,11 +8,7 @@ akka { plugin = "akka.persistence.r2dbc.snapshot" } r2dbc { - # yugabyte or postgres - dialect = "postgres" connection-factory { - driver = "postgres" - host = "localhost" host = ${?DB_HOST} port = 5432 diff --git a/samples/grpc/shopping-cart-service-scala/src/main/resources/persistence.conf b/samples/grpc/shopping-cart-service-scala/src/main/resources/persistence.conf index b9e74dab8..e70acc5e2 100644 --- a/samples/grpc/shopping-cart-service-scala/src/main/resources/persistence.conf +++ b/samples/grpc/shopping-cart-service-scala/src/main/resources/persistence.conf @@ -1,3 +1,4 @@ +akka.persistence.r2dbc.connection-factory = ${akka.persistence.r2dbc.postgres} akka { persistence { journal { @@ -7,11 +8,7 @@ akka { plugin = "akka.persistence.r2dbc.snapshot" } r2dbc { - # yugabyte or postgres - dialect = "postgres" connection-factory { - driver = "postgres" - host = "localhost" host = ${?DB_HOST} port = 5432 diff --git a/samples/replicated/shopping-cart-service-java/src/main/resources/persistence.conf b/samples/replicated/shopping-cart-service-java/src/main/resources/persistence.conf index b9e74dab8..e70acc5e2 100644 --- a/samples/replicated/shopping-cart-service-java/src/main/resources/persistence.conf +++ b/samples/replicated/shopping-cart-service-java/src/main/resources/persistence.conf @@ -1,3 +1,4 @@ +akka.persistence.r2dbc.connection-factory = ${akka.persistence.r2dbc.postgres} akka { persistence { journal { @@ -7,11 +8,7 @@ akka { plugin = "akka.persistence.r2dbc.snapshot" } r2dbc { - # yugabyte or postgres - dialect = "postgres" connection-factory { - driver = "postgres" - host = "localhost" host = ${?DB_HOST} port = 5432 diff --git a/samples/replicated/shopping-cart-service-scala/src/main/resources/persistence.conf b/samples/replicated/shopping-cart-service-scala/src/main/resources/persistence.conf index b9e74dab8..e70acc5e2 100644 --- a/samples/replicated/shopping-cart-service-scala/src/main/resources/persistence.conf +++ b/samples/replicated/shopping-cart-service-scala/src/main/resources/persistence.conf @@ -1,3 +1,4 @@ +akka.persistence.r2dbc.connection-factory = ${akka.persistence.r2dbc.postgres} akka { persistence { journal { @@ -7,11 +8,7 @@ akka { plugin = "akka.persistence.r2dbc.snapshot" } r2dbc { - # yugabyte or postgres - dialect = "postgres" connection-factory { - driver = "postgres" - host = "localhost" host = ${?DB_HOST} port = 5432