refactor: import/card: remove creating trello or deck client variables
Some checks failed
Test / build (map[name:stable]) (push) Successful in 5m30s
Test / build (map[name:nightly]) (push) Successful in 6m48s
Release Please / Release-plz (push) Failing after 23s

This commit is contained in:
Paul Campbell 2024-12-23 09:44:02 +00:00
parent d65dbd18ee
commit cb579f5091

View file

@ -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