Dynamically define access key
This commit is contained in:
parent
a09c1c3d79
commit
6d13907588
5 changed files with 10 additions and 3 deletions
|
|
@ -31,6 +31,11 @@ const RNEX_DEFAULT_PORT: u16 = match u16::from_str_radix(env!("RNEX_DEFAULT_PORT
|
|||
Err(_) => panic!("unable to get default port from env"),
|
||||
};
|
||||
|
||||
const RNEX_ACCESS_KEY: u16 = match u16::from_str_radix(env!("RNEX_ACCESS_KEY"), 10) {
|
||||
Ok(v) => v,
|
||||
Err(_) => panic!("unable to get access key from env"),
|
||||
};
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum Error {
|
||||
#[error("error getting environment variable \"{0}\": {1}")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue