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

Make sim_elapsed function safe to call outside of simulation #170

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

tereshch-aws
Copy link
Collaborator

  • Make sim_elapsed function safe to call outside of simulation

If customer set custom timer for tracing subscriber that uses
sim_elapsed to log simulation time, this function might be called
before world or host set. E.g. with DEBUG level logging set
this function panics on internal log lines in turmoil crate
code before host is set.
@zakvdm
Copy link
Collaborator

zakvdm commented Feb 17, 2024

Thanks for this, looks good to me.

@zakvdm zakvdm merged commit cbaaaba into tokio-rs:main Feb 20, 2024
3 checks passed
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.

2 participants