]> git.bitcoin.ninja Git - rust-lightning/commit
Fix DefaultRouter type restrained to only MutexGuard
authorhenghonglee <henghong.lee@gmail.com>
Thu, 29 Jun 2023 02:41:38 +0000 (10:41 +0800)
committerhenghonglee <henghong.lee@gmail.com>
Tue, 4 Jul 2023 14:30:07 +0000 (22:30 +0800)
commit54bcb6eb02c600df0adf3d438b7595bdb56ad7fb
tree5d5b30ab20e1cd2545ed7c5d2a8435bb22d1c80e
parent86fd9e7fbc549f1e556063301a22a5bb3bc1f333
Fix DefaultRouter type restrained to only MutexGuard

Type of DerefMut for DefaultRouter was specialized to only MutexGuard.
It should be generic around RefMut and MutexGuard. This commit fixes that
lightning-background-processor/src/lib.rs
lightning/src/ln/channelmanager.rs
lightning/src/routing/router.rs
lightning/src/routing/scoring.rs
lightning/src/util/test_utils.rs