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

modrinth post 请求中包含大量无效 hash #110

Open
z0z0r4 opened this issue Nov 29, 2024 · 2 comments
Open

modrinth post 请求中包含大量无效 hash #110

z0z0r4 opened this issue Nov 29, 2024 · 2 comments
Labels
TODO Feature need to be achieved

Comments

@z0z0r4
Copy link
Collaborator

z0z0r4 commented Nov 29, 2024

有很多被报到同步队列中的 hash 实际上不存在于 modrinth,可能是 curseforge 的,但 curseforge 不能查 hash,无法查证。现在同步队列中大量此类无效任务占着队列

可能在因为 PCL2 在识别 mod 的时候,会同时请求 modrinth 和 curseforge 的接口…?

有点无解,但还是找下原因

@z0z0r4
Copy link
Collaborator Author

z0z0r4 commented Dec 29, 2024

观察到今日测试 7a.m. ~ 8a.m. 实际上产生有超 7k 个 sha1,必须要有个缓存

也许可以开个 redios set 专门存这些实质上是不存在的 hashes,然后定时全部清空,比如一天一次

不能长期存储,这些 hashes 可能会发布到另一个平台

api 侧依旧直接将未找到的入队

@z0z0r4 z0z0r4 added the TODO Feature need to be achieved label Dec 29, 2024
@z0z0r4
Copy link
Collaborator Author

z0z0r4 commented Dec 29, 2024

其实不处理也行,modrinth 大概有这 1w 个 hashes,也就查 10 次 api 而已...

只要不是触发了具体的 mod 更新就还好,有待观察

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

No branches or pull requests

1 participant