refactor: import/card: remove creating trello or deck client variables
This commit is contained in:
parent
d65dbd18ee
commit
cb579f5091
1 changed files with 13 additions and 14 deletions
|
@ -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<Self>;
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue