|
|
@ -77,7 +77,7 @@ impl Post { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fn main() -> anyhow::Result<()> { |
|
|
|
fn main() -> anyhow::Result<()> { |
|
|
|
let config = Config::init("postit", "postit.json", None)?; |
|
|
|
let config = Config::init("postit", "postit.json", env!("CARGO_PKG_VERSION"))?; |
|
|
|
let serve_at = format!("{}:{}", config.host, config.port); |
|
|
|
let serve_at = format!("{}:{}", config.host, config.port); |
|
|
|
|
|
|
|
|
|
|
|
let store = Mutex::new({ |
|
|
|
let store = Mutex::new({ |
|
|
|