generalize log capture to all admin commands; simplify handler

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-08-03 05:34:38 +00:00
parent eded585f79
commit 94b805de0b
3 changed files with 87 additions and 86 deletions

View file

@ -1,6 +1,9 @@
use service::Services;
use std::time::SystemTime;
use conduit_service::Services;
pub(crate) struct Command<'a> {
pub(crate) services: &'a Services,
pub(crate) body: &'a [&'a str],
pub(crate) timer: SystemTime,
}