Closed pleshevskiy closed 2 years ago
I'll introduce new commands for channels that will use environment variables to connect.
The first, will use the default environment variables SONIC_HOST and SONIC_PASSWORD to connect.
SONIC_HOST
SONIC_PASSWORD
SearchChannel::from_env();
In the second one you can specify your own variable names.
SearchChannel::from_custom_env("SEARCH_SONIC_HOST", "SEARCH_SONIC_PASSWORD");
Although, despite its simplicity, this will not be an optimized solution, and lazy_static will have to be brought back. So let it be managed externally, as before.
I'll introduce new commands for channels that will use environment variables to connect.
The first, will use the default environment variables
SONIC_HOST
andSONIC_PASSWORD
to connect.In the second one you can specify your own variable names.