Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsonrpc: start reworking the jsonrpc #216

Closed
wants to merge 3 commits into from

Conversation

vincenzopalazzo
Copy link
Owner

@vincenzopalazzo vincenzopalazzo commented May 13, 2024

See commits

Fixes #182

@vincenzopalazzo vincenzopalazzo marked this pull request as draft May 13, 2024 21:48
@vincenzopalazzo vincenzopalazzo force-pushed the macros/patch-jsonrpc branch 4 times, most recently from 93df8c7 to 9ade608 Compare May 15, 2024 16:08
We already are forced to use tokio, so at this point
it is better that we use tokio and we leave our experimentation
for another memont

Link: #182
Signed-off-by: Vincenzo Palazzo <[email protected]>
Signed-off-by: Vincenzo Palazzo <[email protected]>
@vincenzopalazzo vincenzopalazzo marked this pull request as ready for review May 15, 2024 19:29
@vincenzopalazzo
Copy link
Owner Author

When running two RPC command Error: Address already in use (os error 98)

@vincenzopalazzo
Copy link
Owner Author

Founds another crash

2024-05-16T08:10:19.699Z INFO lampod::jsonrpc::peer_control call for `connect` with request `Object {"addr": String("127.0.0.1"), "node_id": String("026b92e6cc3e0f24b42494672ecf65f3d147b9deb95186bf024da7a7745008ee75"), "port": Number(39735)}`. [lampod/src/jsonrpc/peer_control.rs:10]
thread 'main' panicked at 'Cannot start a runtime from within a runtime. This happens because a function (like `block_on`) attempted to block the current thread while the thread is being used to drive asynchronous tasks.', /home/vincent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/scheduler/multi_thread/mod.rs:86:9

@vincenzopalazzo
Copy link
Owner Author

Alternative version without using Tokio yet #219

@vincenzopalazzo
Copy link
Owner Author

Oversees #219

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Resource temporarily unavailable
1 participant