mylofi/local-vault

fix concurrent race conditions

Open

#7 aperta il 5 lug 2025

Vedi su GitHub
 (0 commenti) (0 reazioni) (1 assegnatario)JavaScript (4 fork)github user discovery
buggood first issuehelp wanted

Metriche repository

Star
 (123 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

While it's a small chance, race conditions do exist in that two set() calls concurrently could clobber each other.

Fix is to use a mutex, like Locker.

Guida contributor