mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
d6138ca7af
This commit introduces worker pooling for handling media proxy requests, allowing for actual concurrency in this area. Key changes: - Add ProxyJob struct to represent worker pool jobs - Create a channel for ProxyJob and initialise workers in init function - Modify ProxyRequest to use the worker pool - Add proxyWorker and processProxyJob functions for job processing The number of workers and job queue size are currently hardcoded but can be made configurable in the future.