Skip to content

Commit 28402c1

Browse files
Merge pull request #70 from code0-tech/fix-nats-env-var
Fix nats url environment variable
2 parents 52f3377 + 77a68b5 commit 28402c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.env-example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ENVIRONMENT='development'
22
MODE='dynamic'
3-
NATS_URL='amqp://localhost:5672'
3+
NATS_URL='nats://localhost:4222'
44
AQUILA_URL='http://localhost:8080'
55
WITH_HEALTH_SERVICE=false
66
GRPC_HOST='127.0.0.1'

src/configuration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl Config {
3535
Config {
3636
environment: env_with_default("ENVIRONMENT", Environment::Development),
3737
mode: env_with_default("MODE", Mode::STATIC),
38-
nats_url: env_with_default("RABBITMQ_URL", String::from("amqp://localhost:5672")),
38+
nats_url: env_with_default("NATS_URL", String::from("nats://localhost:4222")),
3939
aquila_url: env_with_default("AQUILA_URL", String::from("http://localhost:50051")),
4040
with_health_service: env_with_default("WITH_HEALTH_SERVICE", false),
4141
grpc_host: env_with_default("GRPC_HOST", "127.0.0.1".to_string()),

0 commit comments

Comments
 (0)