Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议分离config.sh文件 #2552

Open
1 task done
youfak opened this issue Nov 5, 2024 · 4 comments
Open
1 task done

建议分离config.sh文件 #2552

youfak opened this issue Nov 5, 2024 · 4 comments

Comments

@youfak
Copy link
Contributor

youfak commented Nov 5, 2024

Clear and concise description of the problem

通过api操作config.sh文件时,因网络、并发写入时导致配置文件被清空或错乱

Suggested solution

拆分config.sh成config.sh、sys.sh两个文件 config.sh是保持现有的第三方程序可以正常写入配置 sys.sh则配置系统本身运行参数和更改不频繁参数

Alternative

No response

Additional context

No response

Validations

  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
@FanchangWang
Copy link
Contributor

你这并没有改变问题的本质,分开之后你并发修改还是会出错啊

@youfak
Copy link
Contributor Author

youfak commented Nov 24, 2024 via email

@FanchangWang
Copy link
Contributor

最起码不会导致固定的变量会被清空 毕竟开发者对接的是api很难去确保没有问题 ---- 回复的原邮件 ---- @.>发送日期2024年11月24日 20:50 @.> 抄送人Bad @.>, @.>主题Re: [whyour/qinglong] 建议分离config.sh文件 (Issue #2552) 你这并没有改变问题的本质,分开之后你并发修改还是会出错啊 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

还不如专门写个修改 config 的 api,将收到的请求写入队列排队执行或者已有请求未执行完毕的情况下直接返回一个要求等待的状态码

@youfak
Copy link
Contributor Author

youfak commented Nov 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants