From 11d740b0d670b4dfabd0a268d9b23d96803e15f9 Mon Sep 17 00:00:00 2001 From: Alie Date: Mon, 29 Jan 2024 13:15:09 +0100 Subject: [PATCH] deleted some useless lines --- cron.yaml | 6 +++--- src/main.rs | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/cron.yaml b/cron.yaml index e6c4adc..0991435 100644 --- a/cron.yaml +++ b/cron.yaml @@ -10,13 +10,13 @@ spec: spec: containers: - name: bot-job - image: git.fai.st/fedi-image-bot/mastodon-image-uploader-bot:latest + image: git.fai.st/fedi-image-bot/mastodon-image-uploader-bot:v1.0.0 volumeMounts: - name: config-toml - mountPath: /app/ + mountPath: /app/config.toml readOnly: true - name: mastodon-token - mountPath: /app/ + mountPath: /app/mastodon-data.toml readOnly: true restartPolicy: Never volumes: diff --git a/src/main.rs b/src/main.rs index 1aabc3f..433851f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,16 +1,12 @@ - - use mastodon_async::entities::visibility::Visibility; use mastodon_async::helpers::{cli, toml as masto_toml}; use mastodon_async::prelude::*; - use serde::{Deserialize, Serialize}; use std::collections::HashSet; use std::io::{Cursor, Write}; use std::process::exit; use std::time::Duration; - #[derive(Debug, Serialize)] struct AccountUpdate { note: String,