Skip to content

Config should yell and warn about float values being cast to ints #18164

Open
@MadLittleMods

Description

@MadLittleMods

Wherever an int is used for a config value, if someone accidentally provides a float number value, it will get floored (rounded down).

This can lead to misconfigurations like specifying 0.5 for the rate limiting burst_count which will get rounded down to 0 and not allow requests at all (real example: #18159).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions