mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-24 13:06:51 -04:00
8380c1d6fa
- Introduced a new test case `TestLock` to validate the behavior of the Redis locking mechanism under concurrent access. - Enhanced the `Lock` function to improve error handling and ensure proper locking behavior. - Utilized `sync.WaitGroup` and atomic operations to measure wait times during lock acquisition, ensuring the lock behaves as expected under high concurrency.