Skip to content

Commit 47edb70

Browse files
Alain Brenzikoferbrenzi
Alain Brenzikofer
authored andcommitted
better panic than ugly "nix" return value
1 parent 5cfa826 commit 47edb70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rpc/client.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ pub fn on_extrinsic_msg_until_ready(
123123

124124
fn end_process(out: Sender, result: ThreadOut<String>, value: Option<String>) {
125125
// return result to calling thread
126-
println!(
126+
debug!(
127127
"Thread end result :{:?} value:{:?}",
128128
result.clone(),
129129
value.clone()
130130
);
131-
let val = value.unwrap_or_else(|| "nix".to_string());
131+
let val = value.unwrap();
132132
result.send(val).unwrap();
133133
out.close(CloseCode::Normal).unwrap();
134134
}

0 commit comments

Comments
 (0)