Skip to content

Commit

Permalink
default endpoint in config (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrinaw committed Feb 23, 2023
1 parent cbcbff5 commit da8e9a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mycelite/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ impl Config {
path.push_str("-mycelite-config");
path
};
Self {
let mut s = Self {
path,
state: BTreeMap::new(),
}
};
s.insert("endpoint", "https://us-east-1.mycelial.com");
s
}

pub fn get(&self, key: &str) -> Option<&str> {
Expand Down

0 comments on commit da8e9a7

Please sign in to comment.