feat: update name
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-11-19 17:20:41 +01:00
parent d51716893f
commit 5c88cdd3e3
5 changed files with 19 additions and 19 deletions

View File

@@ -5,12 +5,12 @@ use tracing::Level;
struct WaitServer {}
#[async_trait]
impl mad::Component for WaitServer {
impl notmad::Component for WaitServer {
fn name(&self) -> Option<String> {
Some("WaitServer".into())
}
async fn run(&self, _cancellation: CancellationToken) -> Result<(), mad::MadError> {
async fn run(&self, _cancellation: CancellationToken) -> Result<(), notmad::MadError> {
let millis_wait = rand::thread_rng().gen_range(500..3000);
tracing::debug!("waiting: {}ms", millis_wait);
@@ -30,7 +30,7 @@ async fn main() -> anyhow::Result<()> {
let item = "some item".to_string();
mad::Mad::builder()
notmad::Mad::builder()
.add(WaitServer {})
.add_fn(|_cancel| async move {
let millis_wait = 50;