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 shutdown_on_signal only available on Unix #48

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

SandroHc
Copy link
Contributor

Fixes the compilation error on Windows due to tokio::signal::unix::SignalKind only being available on Unix systems. Should fix #36.

As a bonus, I have also fixed the following deprecation warning:

use of deprecated associated function chrono::NaiveDateTime::from_timestamp: use from_timestamp_opt() instead

SandroHc and others added 3 commits June 25, 2023 13:13
Fixes the compilation error on Windows due to `tokio::signal::unix::SignalKind` only being available on Unix systems.
Fixes the following warning:
> use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `from_timestamp_opt()` instead
@mvniekerk
Copy link
Owner

Hi @SandroHc
Thank you for the PR.

@mvniekerk mvniekerk merged commit 20162d2 into mvniekerk:main Apr 26, 2024
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.

Shutdown on signal feature only works on unix
2 participants