Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feature request: add blockOnConsumed option #277

Copy link
Copy link

Description

@ruscon
Issue body actions

What I want to have:

{
      points: 10,
      duration: 10,
      blockOnConsumed: 15, // new
      blockDuration: 60,
      inMemoryBlockOnConsumed: 15,
      inMemoryBlockDuration: 30,
}

I want to block only after 15 requests, but update the counter value up to 15 in the storage.
It's not the same as inMemoryBlockOnConsumed and inMemoryBlockDuration.

This is necessary when more than one service instance is used. Then the block duration could be taken from the storage and immediately switched to working in memory after the first request.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.