Use a builder instead of a raw function

This pattern will, in the future, allow the registration of events
handlers and context objects.
This commit is contained in:
Rodolphe Breard 2019-01-03 20:16:23 +01:00
parent c25dfb253a
commit 98e4beadd3
3 changed files with 75 additions and 70 deletions

View file

@ -1,6 +1,7 @@
use env_logger::{Builder, Env};
use opensmtpd::SmtpIn;
fn main() {
Builder::from_env(Env::default().default_filter_or("debug")).init();
opensmtpd::run();
SmtpIn::new().run();
}