Skip to content

Fix bug on promise helper #249

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

Merged
merged 1 commit into from
May 9, 2025
Merged
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
6 changes: 3 additions & 3 deletions resonate/resonate.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,12 @@ def promise(
tags: dict[str, str] | None = None,
) -> RFI:
self._counter += 1

id = id or f"{self.id}.{self._counter}"
return RFI(
Base(
f"{self.id}.{self._counter}",
id,
timeout or 31536000,
idempotency_key,
idempotency_key or id,
headers,
data,
tags,
Expand Down
1 change: 0 additions & 1 deletion resonate/stores/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ def create(
"tags": tags or {},
},
)

res = self._store.call(req.prepare())
return DurablePromise.from_dict(self._store, res)

Expand Down
Loading