Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Fixed

- **Rust:** Fix incorrect cache expiry checks in `QuoteContext`.
- **All bindings:** Correct `SecurityStaticInfo.dividend_yield` doc comment from "Dividend yield" (ratio) to "Dividend" (per share amount) across all language SDKs (Rust, Python, Node.js, Java, C, C++).
- **All bindings:** `create_topic` now returns the topic ID (`String`) instead of `OwnedTopic` to avoid deserialization errors when the API response omits optional fields.

Expand Down
2 changes: 1 addition & 1 deletion rust/src/quote/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ where
{
let mut inner = self.inner.lock().await;
match inner.values.get(&key) {
Some(Item { deadline, value }) if deadline < &Instant::now() => Ok(value.clone()),
Some(Item { deadline, value }) if deadline > &Instant::now() => Ok(value.clone()),
_ => {
let value = f(key.clone()).await?;
let deadline = Instant::now() + inner.timeout;
Expand Down