Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
haerdib committed Dec 8, 2023
1 parent b28d5ef commit ccbabcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpc/jsonrpsee_client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ impl Request for JsonrpseeClient {
let method_string = method.to_string();

// The inner jsonrpsee client must not deserialize to the `R` value, because the return value must
// implement `Send`. But we do not want to enforce the `R` value to implment this simply because we need
// implement `Send`. But we do not want to enforce the `R` value to implement this solely because we need
// to de-async something. Therefore, the deserialization must happen outside of the newly spawned thread.
// We need to spawn a new thread because tokio does not allow the blocking of an asynchronous thread is not allowed:
// We need to spawn a new thread because tokio does not allow the blocking of an asynchronous thread:
// ERROR: Cannot block the current thread from within a runtime.
// This happens because a function attempted to block the current thread while the thread is being used to drive asynchronous tasks.
let string_answer: Value = std::thread::spawn(move || {
Expand Down

0 comments on commit ccbabcb

Please sign in to comment.