-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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
Labels
No labels