Skip to content

Commit 6fe0252

Browse files
committed
🔧 [HDK-8201] Emqx: updating emqx settings.
- Fixing emqx settings.
1 parent bb41341 commit 6fe0252

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

‎src/ubidots_emqx_retainer_settings.erl

+17-17
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,36 @@
66

77
get_settings() ->
88
#{ubidots_cache_type =>
9-
list_to_atom(os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__TYPE", "single")),
9+
list_to_atom(os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__TYPE", "single")),
1010
ubidots_cache_host_name =>
11-
os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__HOST_NAME", "127.0.0.1"),
11+
os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__HOST_NAME", "127.0.0.1"),
1212
ubidots_cache_port =>
13-
list_to_integer(os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__PORT", "6379")),
13+
list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__PORT", "6379")),
1414
ubidots_cache_database =>
15-
list_to_integer(os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__DATABASE", "1")),
15+
list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__DATABASE", "1")),
1616
ubidots_cache_password => os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__PASSWORD", ""),
1717
ubidots_cache_server =>
18-
os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__SERVER", "localhost:6379"),
18+
os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__SERVER", "localhost:6379"),
1919
ubidots_cache_pool_size =>
20-
list_to_integer(os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__POOL_SIZE", "10")),
20+
list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__POOL_SIZE", "10")),
2121
ubidots_cache_pool_type =>
22-
list_to_atom(os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__POOL_TYPE", "round_robin")),
22+
list_to_atom(os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__POOL_TYPE", "round_robin")),
2323
ubidots_cache_reconnect =>
24-
list_to_integer(os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__RECONNECT", "3")),
24+
list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__RECONNECT", "3")),
2525
reactor_cache_type =>
26-
list_to_atom(os:getenv("EMQX_RETAINER__REACTOR_CACHE__TYPE", "single")),
26+
list_to_atom(os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__TYPE", "single")),
2727
reactor_cache_host_name =>
28-
os:getenv("EMQX_RETAINER__REACTOR_CACHE__HOST_NAME", "127.0.0.1"),
28+
os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__HOST_NAME", "127.0.0.1"),
2929
reactor_cache_port =>
30-
list_to_integer(os:getenv("EMQX_RETAINER__REACTOR_CACHE__PORT", "6379")),
30+
list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__PORT", "6379")),
3131
reactor_cache_database =>
32-
list_to_integer(os:getenv("EMQX_RETAINER__REACTOR_CACHE__DATABASE", "2")),
33-
reactor_cache_password => os:getenv("EMQX_RETAINER__REACTOR_CACHE__PASSWORD", ""),
32+
list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__DATABASE", "2")),
33+
reactor_cache_password => os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__PASSWORD", ""),
3434
reactor_cache_server =>
35-
os:getenv("EMQX_RETAINER__REACTOR_CACHE__SERVER", "localhost:6379"),
35+
os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__SERVER", "localhost:6379"),
3636
reactor_cache_pool_type =>
37-
list_to_atom(os:getenv("EMQX_RETAINER__REACTOR_CACHE__POOL_TYPE", "round_robin")),
37+
list_to_atom(os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__POOL_TYPE", "round_robin")),
3838
reactor_cache_pool_size =>
39-
list_to_integer(os:getenv("EMQX_RETAINER__REACTOR_CACHE__POOL_SIZE", "10")),
39+
list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__POOL_SIZE", "10")),
4040
reactor_cache_reconnect =>
41-
list_to_integer(os:getenv("EMQX_RETAINER__REACTOR_CACHE__RECONNECT", "3"))}.
41+
list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__RECONNECT", "3"))}.

0 commit comments

Comments
 (0)