You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use crypto_crawler::{crawl_trade,MarketType};#[tokio::main]asyncfnmain(){let(tx, rx) = std::sync::mpsc::channel();
tokio::task::spawn(asyncmove{for msg in rx {println!("{}", msg);}});crawl_trade("binance",MarketType::Spot,None, tx).await;}
Cargo.toml:
[package]
name = "crypto_test"version = "0.1.0"edition = "2021"
[dependencies]
tokio = { version = "1", features = ["full"] }
crypto-crawler = "*"
> cargo run
thread 'main' has overflowed its stack
error: process didn't exit successfully: `target\debug\crypto_test.exe` (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)
It seems between frame 17 and 18 a bunch of state data (500Kb) is allocated on stack instead of heap or something. Don't have much time to investigate, sorry.
The text was updated successfully, but these errors were encountered:
rustc 1.60.0 (7737e0b5c 2022-04-04)
Window 11 10.0.22000 Build 22000
main.rs:
Cargo.toml:
Callstack
It seems between frame 17 and 18 a bunch of state data (500Kb) is allocated on stack instead of heap or something. Don't have much time to investigate, sorry.
The text was updated successfully, but these errors were encountered: