Fix Sse client api (#6685)

* Use reqwest eventsource for get_events api

* await for Event::Open before returning stream

* fmt

* Merge branch 'unstable' into sse-client-fix

* Ignore lint
This commit is contained in:
Pawan Dhananjay
2024-12-18 05:35:58 +05:30
committed by GitHub
parent 1315c94adb
commit 2662dc7f8f
5 changed files with 65 additions and 29 deletions

View File

@@ -27,6 +27,7 @@ slashing_protection = { workspace = true }
mediatype = "0.19.13"
pretty_reqwest_error = { workspace = true }
derivative = { workspace = true }
reqwest-eventsource = "0.5.0"
[dev-dependencies]
tokio = { workspace = true }