issues
search
sonroyaalmerol
/
m3u-stream-merger-proxy
A lightweight HTTP proxy server dockerized for consolidating and streaming content from multiple IPTV M3U playlists, acting as a load balancer between provided sources.
https://hub.docker.com/r/sonroyaalmerol/m3u-stream-merger-proxy
12
stars
1
forks
source link
Optimize database instances
#42
Closed
sonroyaalmerol
closed
3 months ago
sonroyaalmerol
commented
3 months ago
Context
The current handling of databases can be a lot cleaner if each instance/connection will have its own mutex state.
Choices
Create a separate struct for each database instance with separate mutex.
Add a global
swappingLock
to make sure the playlist route will wait until database swap is finished.
Add playlist route HTTP status test.
Checklist before requesting a review
[x] I have performed a self-review of my code
[ ] I've added documentation about this change to the README.
[ ] I've not introduced breaking changes.
Context
Choices
swappingLock
to make sure the playlist route will wait until database swap is finished.Checklist before requesting a review