mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 17:20:49 +00:00
Split youmubot-osu
This commit is contained in:
parent
03be1a4acc
commit
aec9cd130d
15 changed files with 108 additions and 86 deletions
|
@ -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.
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue