Files
dbeff36ae0 Add configuration locking (#10680)
* Add configuration locking

Extracted from https://github.com/Chia-Network/chia-blockchain/pull/10631

* note that fasteners will likely be replaced by filelock

* Fix test_multiple_writers on macOS

* create_all_ssl() doesn't need to be inside the config access lock

* add warnings about not using async within get_config_lock() get lock contexts

* no need to pre-touch the lock file

* .yaml.lock instead of just .lock

* test_multiple_writers() is sync

* Revert "add warnings about not using async within get_config_lock() get lock contexts"

This reverts commit 681af3835b.

* reduce lock context size in chia_init()

* use an exit stack in load_config()

* avoid config existence precheck

* only lock around the read in load_config()

* do not raise e, just raise

* tidy new imports

* fix queue empty check in test_config.py

* remove commented out code in test_config.py

* remove unused import

Co-authored-by: Jeff Cruikshank <jeff@chia.net>
2022-03-12 06:52:47 -08:00
..
2022-03-12 06:52:47 -08:00
2022-03-11 18:52:00 -08:00
2022-03-12 06:52:47 -08:00
2021-05-10 22:05:45 -07:00
2022-03-12 06:52:47 -08:00
2022-03-01 10:49:41 -08:00
2022-02-26 18:31:10 -05:00
2022-03-12 06:52:47 -08:00
2022-03-10 11:25:28 -08:00
2021-10-28 15:37:46 -07:00