Skip to content

Commit c7650fa

Browse files
committed
WIP
Signed-off-by: Luke Yue <lukedyue@gmail.com>
1 parent a2fa883 commit c7650fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rdmacm/communication_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ impl Identifier {
849849
let mut guard = DEVICE_LISTS.lock().unwrap();
850850
let device_ctx = guard
851851
.entry((*cm_id.as_ptr()).verbs as usize)
852-
.or_insert(Arc::new(DeviceContext {
852+
.or_insert_with(|| Arc::new(DeviceContext {
853853
// Safe due to the is_null() check above.
854854
context: NonNull::new((*cm_id.as_ptr()).verbs).unwrap(),
855855
}));

0 commit comments

Comments
 (0)