Skip to content
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

refacto: revert Unix.sleepf to Eio time module #1028

Open
wants to merge 1 commit into
base: rc-v0.1.1-6
Choose a base branch
from

Conversation

Pilou97
Copy link
Contributor

@Pilou97 Pilou97 commented Dec 21, 2022

Problem

Eio.TIme.sleep_until was removed because it introduced a bug (invokation/origination wasn't possible)
It was replaced by Unix.sleepf ,but this sleep, sleep all the domain

Solution

Reintroduce Eio.Time.sleep at a better place

I've added a chain action Chain_sleep of {duration: float} and replace the Fiber.List.iter to another solution to allow forking or not according to the action

Tests

The origination/invokation of a smart contract is still working
The stats endpoint shows correct statistics

@Pilou97 Pilou97 force-pushed the reintroduce-eio-time-sleep branch 2 times, most recently from af6557c to f870dab Compare December 22, 2022 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant