Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Open channel using env variables #17

Closed
pleshevskiy opened this issue Jul 18, 2022 · 1 comment
Closed

Open channel using env variables #17

pleshevskiy opened this issue Jul 18, 2022 · 1 comment

Comments

@pleshevskiy
Copy link
Owner

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.

SearchChannel::from_env();

In the second one you can specify your own variable names.

SearchChannel::from_custom_env("SEARCH_SONIC_HOST", "SEARCH_SONIC_PASSWORD");
@pleshevskiy
Copy link
Owner Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant