tus / tusd

Reference server implementation in Go of tus: the open protocol for resumable file uploads
https://tus.github.io/tusd
MIT License
3.09k stars 480 forks source link

Improve the lock interface to better suit distributed locks #1111

Open Acconut opened 7 months ago

Acconut commented 7 months ago

The current lock inferface was primarily inspired by in-memory mutexes, where one can assume that an acquired mutex is valid until it is released again. These assumption do not hold up for distributed lock mechanisms and we should adjust the lock interface to accommodate those: