diff --git a/src/import/card.rs b/src/import/card.rs index 08e956c..9b5dd4d 100644 --- a/src/import/card.rs +++ b/src/import/card.rs @@ -8,19 +8,22 @@ use kameo::{ Actor, }; -use crate::import::rate_limit::{RateLimitActor, RequestToken}; -use crate::rate_limit::RateLimit; use crate::{ ask, - import::{attachment::ImportAttachmentActor, label::ImportLabelActor, labels::LabelsActor}, - nextcloud::{ - client::DeckClient, - model::{NextcloudBoardId, NextcloudCardDescription, NextcloudCardTitle, NextcloudStackId}, + import::{ + attachment::ImportAttachmentActor, + label::ImportLabelActor, + labels::LabelsActor, + rate_limit::{RateLimitActor, RequestToken}, }, - on_actor_link_died, on_actor_start, p, spawn_in_thread, - trello::{ - client::TrelloClient, - model::{attachment::TrelloAttachmentName, card::TrelloShortCard, label::TrelloLabelName}, + nextcloud::model::{ + NextcloudBoardId, NextcloudCardDescription, NextcloudCardTitle, NextcloudStackId, + }, + on_actor_link_died, on_actor_start, p, + rate_limit::RateLimit, + spawn_in_thread, + trello::model::{ + attachment::TrelloAttachmentName, card::TrelloShortCard, label::TrelloLabelName, }, FullCtx, }; @@ -62,10 +65,6 @@ impl Actor for ImportCardActor { type Mailbox = UnboundedMailbox; on_actor_start!(this, actor_ref, { - let trello_client: TrelloClient = this.ctx.trello_client(); - - let deck_client: DeckClient = this.ctx.deck_client(); - p!(this.ctx.prt, "> Importing card: {}", this.trello_card.name); tracing::info!(name = %this.trello_card.name, "importing card"); // - - create a nextcloud card