Skip to content

Commit 2150e47

Browse files
committed
fix remote println!
1 parent 5abf8d4 commit 2150e47

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/ucp/endpoint/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,12 @@ impl Endpoint {
9393
let ptr = Weak::into_raw(weak);
9494
unsafe extern "C" fn callback(arg: *mut c_void, ep: ucp_ep_h, status: ucs_status_t) {
9595
let weak: Weak<EndpointInner> = Weak::from_raw(arg as _);
96-
println!("error callback");
9796
if let Some(inner) = weak.upgrade() {
9897
inner.set_status(status);
9998
// don't drop weak reference
100-
println!("no drop");
101-
// panic!("{:?}",Error::from_status(status));
10299
std::mem::forget(weak);
103100
} else {
104101
// no strong rc, force close endpoint here
105-
println!("failed");
106102
let status = ucp_ep_close_nb(ep, ucp_ep_close_mode::UCP_EP_CLOSE_MODE_FORCE as _);
107103
let _ = Error::from_ptr(status)
108104
.map_err(|err| error!("Force close endpoint failed, {}", err));

0 commit comments

Comments
 (0)