-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Comments
你这并没有改变问题的本质,分开之后你并发修改还是会出错啊 |
最起码不会导致固定的变量会被清空 毕竟开发者对接的是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,将收到的请求写入队列排队执行或者已有请求未执行完毕的情况下直接返回一个要求等待的状态码 |
如果在第三方bot插件处理就错了那本地api也没办法处理吧?
在 2024年11月24日,21:21,FanchangWang ***@***.***> 写道:
最起码不会导致固定的变量会被清空 毕竟开发者对接的是api很难去确保没有问题 ---- 回复的原邮件 ---- @.>发送日期2024年11月24日 20:50 @.> 抄送人Bad @.>, @.>主题Re: [whyour/qinglong] 建议分离config.sh文件 (Issue #2552<#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,将收到的请求写入队列排队执行或者已有请求未执行完毕的情况下直接返回一个要求等待的状态码
—
Reply to this email directly, view it on GitHub<#2552 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGPBVOCIW2EO2ESKT5UZ3KL2CHHEFAVCNFSM6AAAAABRFW3Q4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJVHE4TSMBQGA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
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
The text was updated successfully, but these errors were encountered: