We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b5e7b0 commit 8e17db4Copy full SHA for 8e17db4
lightning/src/routing/scoring.rs
@@ -148,12 +148,12 @@ impl<'a, T: 'a + Score> LockableScore<'a> for RefCell<T> {
148
149
#[cfg(c_bindings)]
150
/// A concrete implementation of [`LockableScore`] which supports multi-threading.
151
-pub struct ScoreHolder<S: Score> { // TODO(jkczyz): Name this better
+pub struct MultiThreadedLockableScore<S: Score> {
152
score: Mutex<S>,
153
}
154
155
/// (C-not exported)
156
-impl<'a, T: Score + 'a> LockableScore<'a> for ScoreHolder<T> {
+impl<'a, T: Score + 'a> LockableScore<'a> for MultiThreadedLockableScore<T> {
157
type Locked = MutexGuard<'a, T>;
158
159
fn lock(&'a self) -> MutexGuard<'a, T> {
0 commit comments