Skip to content

refactor: use int instead of float for download delay#33

Merged
squat merged 1 commit intosquat:mainfrom
pinguibot:int-download-delay
Apr 10, 2026
Merged

refactor: use int instead of float for download delay#33
squat merged 1 commit intosquat:mainfrom
pinguibot:int-download-delay

Conversation

@pinguibot
Copy link
Copy Markdown
Contributor

Summary

Simplifies the NixOS configuration by changing the downloadDelay option type from float to ints.unsigned, eliminating the need for users to write 5.0 instead of the more natural 5.

  • nix/modules/nixos.nix: floatints.unsigned; default 0.00; example 5.05; comparison != 0.0!= 0
  • src/streamdl/app.py: State.download_delay, _download_with_delay parameter, and config pop cast all changed from float to int

Depends on / follows #32.

Simplifies the NixOS configuration by changing the downloadDelay option
type from float to ints.unsigned, and aligns the Python app accordingly
(State.download_delay, _download_with_delay signature, and the config
pop cast all changed from float to int).
@squat squat enabled auto-merge April 10, 2026 12:41
@squat squat merged commit f336b5e into squat:main Apr 10, 2026
4 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