Split youmubot-osu

This commit is contained in:
Natsu Kagami 2020-02-05 17:25:34 -05:00
parent 03be1a4acc
commit aec9cd130d
15 changed files with 108 additions and 86 deletions

View file

@ -18,13 +18,6 @@ impl TypeMapKey for HTTPClient {
type Value = reqwest::blocking::Client;
}
/// The osu! client.
// pub(crate) struct OsuClient;
// impl TypeMapKey for OsuClient {
// type Value = OsuHttpClient;
// }
/// The TypeMap trait that allows TypeMaps to quickly get a clonable item.
pub trait GetCloned {
/// Gets an item from the store, cloned.

View file

@ -9,6 +9,5 @@ pub fn setup_prelude(db_path: &Path, data: &mut ShareMap, _: &mut StandardFramew
crate::announcer::AnnouncerChannels::insert_into(data, db_path.join("announcers.yaml"))
.expect("Announcers DB set up");
data.insert::<crate::HTTPClient>(reqwest::blocking::Client::new())
.expect("Should be able to insert");
data.insert::<crate::HTTPClient>(reqwest::blocking::Client::new());
}