add method/params to duplicate stream (#224)

Co-authored-by: Rory Neithinger <rory@llamanodes.com>
This commit is contained in:
Bryan Stitt 2023-10-04 21:53:46 -07:00 committed by GitHub
parent 5aa967dfa9
commit f153b2b805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1708,7 +1708,9 @@ impl Web3ProxyApp {
if let Some(x) = x.lock().take() {
Ok(jsonrpc::SingleResponse::Stream(x))
} else {
let err: Web3ProxyError = anyhow::anyhow!("stream was already taken. please report this in Discord").into();
let method = web3_request.request.method();
let params = web3_request.request.params();
let err: Web3ProxyError = anyhow::anyhow!("stream was already taken. please report this in Discord. method={:?} params={:?}", method, params).into();
Err(Arc::new(err))
}