Skip to content

Commit 6ff262f

Browse files
committed
Replace Arc.clone()s with Arc::clone() in BP tests
`arc.clone()` leaves the code somewhat ambiguous to whether we're doing an expensive deep-clone operation or if we're doing a (relatively) cheap pointer-copy-and-atomic-increment operation. More importantly, it leaves entirely unclear what the semantics of the object we just created are - does updating it update the original or leave it be? Thus, here, we replace `arc.clone()` calls with `Arc::clone()` in `lightning-background-processor` tests.
1 parent f46be2c commit 6ff262f

File tree

1 file changed

+131
-131
lines changed
  • lightning-background-processor/src

1 file changed

+131
-131
lines changed

0 commit comments

Comments
 (0)