Skip to content

Commit 7b516b4

Browse files
committed
fix remote println!
1 parent 5abf8d4 commit 7b516b4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/ucp/endpoint/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,13 @@ 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");
10199
// panic!("{:?}",Error::from_status(status));
102100
std::mem::forget(weak);
103101
} else {
104102
// no strong rc, force close endpoint here
105-
println!("failed");
106103
let status = ucp_ep_close_nb(ep, ucp_ep_close_mode::UCP_EP_CLOSE_MODE_FORCE as _);
107104
let _ = Error::from_ptr(status)
108105
.map_err(|err| error!("Force close endpoint failed, {}", err));

0 commit comments

Comments
 (0)