Skip to content

:rph bug #1

@markhu53

Description

@markhu53

iex(3)> Throttle.allow? {"hello", :rph, 3}
{:ok,
%Throttle.Result{allowed: true, count: 3, counter: "throttle/hello/12",
delay: nil, delay_until: nil, keyspace: "hello", namespace: "throttle",
started_at: 1508503263, timespace: 12, type: :rph, value: 3}}
iex(4)> Throttle.allow? {"hello", :rph, 3}
** (KeyError) key :min not found in: #DateTime<2017-10-20 12:41:11Z>
(throttle) lib/result.ex:112: Throttle.Result.modify_datetime/2
(throttle) lib/result.ex:102: Throttle.Result.put_delay/1
(throttle) lib/throttle.ex:18: Throttle.allow?/1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions