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:
parent
c25dfb253a
commit
98e4beadd3
3 changed files with 75 additions and 70 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Reference in a new issue