You've already forked pages
forked from didirus/AstralRinth
Merge branch 'master' into gui_search
This commit is contained in:
22
theseus/src/config.rs
Normal file
22
theseus/src/config.rs
Normal file
@@ -0,0 +1,22 @@
|
||||
//! Configuration structs
|
||||
|
||||
use once_cell::sync::Lazy;
|
||||
use std::time;
|
||||
|
||||
pub static BINCODE_CONFIG: Lazy<bincode::config::Configuration> =
|
||||
Lazy::new(|| {
|
||||
bincode::config::standard()
|
||||
.with_little_endian()
|
||||
.with_no_limit()
|
||||
});
|
||||
|
||||
pub static REQWEST_CLIENT: Lazy<reqwest::Client> = Lazy::new(|| {
|
||||
reqwest::Client::builder()
|
||||
.tcp_keepalive(Some(time::Duration::from_secs(10)))
|
||||
.build()
|
||||
.unwrap()
|
||||
});
|
||||
|
||||
pub fn sled_config() -> sled::Config {
|
||||
sled::Config::default().use_compression(true)
|
||||
}
|
||||
Reference in New Issue
Block a user