feat(tray): 增加自动重连选项#15
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
本 PR 为托盘模式增加用户可控的自动重连能力。开启后,串流连接异常断开时不会进入最终失败状态,而是持续尝试恢复到原先选中的播放目标。
主要改动
auto_reconnect配置项,默认关闭,并支持配置文件持久化。自动重连 / Auto Reconnect可勾选选项。Reconnecting状态,断线后按有上限的退避策略持续重试:0s / 2s / 5s / 10s / 30s / 60s。验证
cargo fmt --all -- --checkcargo clippy --all-targets -- -D warningscargo test --all-targets说明
cargo check --target x86_64-pc-windows-msvc,但当前环境在现有build.rs嵌入 Windows 图标时缺少资源工具,报错为failed to embed Windows icon: No such file or directory,因此该检查未进入代码编译阶段。关联 Issue:Closes #14