decred / vspd

A Voting Service Provider (VSP) for the Decred network.
ISC License
19 stars 20 forks source link

database: Remove RWMutex protecting ticket bucket. #441

Closed jholdstock closed 1 year ago

jholdstock commented 1 year ago

The mutex was added to the ticket bucket as a pre-emptive safety measure (#150), but the bbolt project documentation seems to indicate that it isn't necessary.

https://github.com/etcd-io/bbolt/blob/v1.3.7/README.md#transactions

jholdstock commented 1 year ago

Requesting review from @jrick because dcrwallet makes heavy use of bbolt and, as far as I can see, it does not maintain any of its own RW locking.