Skip to content

Fix consume ratelimit config #242

Closed
@wookie184

Description

@wookie184

Configuration for rate limits lets you set the consume rate:

ratelimit = {
"read": {
"capacity": 100,
"consume": 1,
"refill": 2,
},
"create": {
"capacity": 2,
"consume": 2,
"refill": 1,
},
"delete": {
"capacity": 2,
"consume": 2,
"refill": 1,

However, this configuration is not used, instead the consume value is always 1:

if not ratelimit_area[area][address].consume(1):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpython

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions