Skip to content

if any STT service errors, clear all queued workers #24

if any STT service errors, clear all queued workers

if any STT service errors, clear all queued workers #24

Triggered via push December 11, 2023 04:08
Status Failure
Total duration 2m 25s
Artifacts

linters.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

1 error and 21 warnings
Clippy
Clippy had exited with the 101 exit code
Rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
unused variable: `guild_id`: scripty_commands/src/cmds/admin/shutdown.rs#L9
warning: unused variable: `guild_id` --> scripty_commands/src/cmds/admin/shutdown.rs:9:7 | 9 | for (guild_id, call) in songbird.iter() { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_guild_id`
unused variable: `msg`: scripty_commands/src/cmds/admin/shutdown.rs#L5
warning: unused variable: `msg` --> scripty_commands/src/cmds/admin/shutdown.rs:5:6 | 5 | let msg = ctx.say("shutting down").await?; | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` | = note: `#[warn(unused_variables)]` on by default
this function has too many arguments (12/7): scripty_audio_handler/src/events/voice_tick.rs#L28
warning: this function has too many arguments (12/7) --> scripty_audio_handler/src/events/voice_tick.rs:28:1 | 28 | / pub async fn voice_tick( 29 | | voice_data: VoiceTick, 30 | | ssrc_state: Arc<SsrcMaps>, 31 | | guild_id: GuildId, ... | 40 | | translate: Arc<AtomicBool>, 41 | | ) { | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
this function has too many arguments (9/7): scripty_audio_handler/src/events/driver_disconnect.rs#L17
warning: this function has too many arguments (9/7) --> scripty_audio_handler/src/events/driver_disconnect.rs:17:1 | 17 | / pub async fn driver_disconnect( 18 | | guild_id: GuildId, 19 | | reason: Option<DisconnectReason>, 20 | | ctx: Context, ... | 26 | | seen_users: SeenUsers, 27 | | ) { | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
this function has too many arguments (8/7): scripty_audio_handler/src/audio_handler.rs#L72
warning: this function has too many arguments (8/7) --> scripty_audio_handler/src/audio_handler.rs:72:2 | 72 | / pub async fn new( 73 | | guild_id: GuildId, 74 | | webhook: Webhook, 75 | | context: Context, ... | 80 | | automod_server_cfg: AutomodServerConfig, 81 | | ) -> Result<Self, sqlx::Error> { | |__________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
unused variable: `auto_detect_lang`: scripty_audio_handler/src/events/voice_tick.rs#L111
warning: unused variable: `auto_detect_lang` --> scripty_audio_handler/src/events/voice_tick.rs:111:3 | 111 | auto_detect_lang, | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `auto_detect_lang: _` | = note: `#[warn(unused_variables)]` on by default
redundant pattern matching, consider using `is_err()`: scripty_stt/src/load_balancer.rs#L486
warning: redundant pattern matching, consider using `is_err()` --> scripty_stt/src/load_balancer.rs:486:12 | 486 | if let Err(_) = purge_tx.send_async(()).await { | -------^^^^^^-------------------------------- help: try: `if (purge_tx.send_async(()).await).is_err()` | = note: this will change drop order of the result, as well as all temporaries = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
redundant pattern matching, consider using `is_err()`: scripty_stt/src/load_balancer.rs#L105
warning: redundant pattern matching, consider using `is_err()` --> scripty_stt/src/load_balancer.rs:105:13 | 105 | if let Err(_) = t3.new_worker_tx.send_async(()).await { | -------^^^^^^---------------------------------------- help: try: `if (t3.new_worker_tx.send_async(()).await).is_err()` | = note: this will change drop order of the result, as well as all temporaries = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
redundant pattern matching, consider using `is_ok()`: scripty_stt/src/load_balancer.rs#L102
warning: redundant pattern matching, consider using `is_ok()` --> scripty_stt/src/load_balancer.rs:102:12 | 102 | if let Ok(_) = purge_rx.recv_async().await { | -------^^^^^------------------------------ help: try: `if (purge_rx.recv_async().await).is_ok()` | = note: this will change drop order of the result, as well as all temporaries = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching = note: `#[warn(clippy::redundant_pattern_matching)]` on by default
field `peer_address` is never read: scripty_stt/src/models.rs#L24
warning: field `peer_address` is never read --> scripty_stt/src/models.rs:24:2 | 21 | pub struct Stream { | ------ field in this struct ... 24 | peer_address: SocketAddr, | ^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
this function has too many arguments (8/7): scripty_automod/src/types.rs#L73
warning: this function has too many arguments (8/7) --> scripty_automod/src/types.rs:73:2 | 73 | / pub fn new( 74 | | guild_id: u64, 75 | | internal_id: i32, 76 | | enabled: bool, ... | 81 | | auto_join_voice: bool, 82 | | ) -> Self { | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
Clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/