Skip to content

Commit 1feee9a

Browse files
committed
Support Elixir 1.15
1 parent 6845aa9 commit 1feee9a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.formatter.exs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ locals_without_parens = [error_tracker_dashboard: 1, error_tracker_dashboard: 2]
66
inputs: ["{mix,.formatter,dev,dev.*}.exs", "{config,lib,test}/**/*.{heex,ex,exs}"],
77
plugins: [Phoenix.LiveView.HTMLFormatter, Styler],
88
locals_without_parens: locals_without_parens,
9-
export: [locals_without_parens: locals_without_parens]
9+
export: [locals_without_parens: locals_without_parens],
10+
styler: [
11+
minimum_supported_elixir_version: "1.15.0"
12+
]
1013
]

lib/error_tracker/plugins/pruner.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ defmodule ErrorTracker.Plugins.Pruner do
119119
def init(state \\ []) do
120120
state = %{
121121
limit: state[:limit] || 200,
122-
max_age: state[:max_age] || to_timeout(day: 1),
123-
interval: state[:interval] || to_timeout(minute: 30)
122+
max_age: state[:max_age] || :timer.hours(24),
123+
interval: state[:interval] || :timer.minutes(30)
124124
}
125125

126126
{:ok, schedule_prune(state)}

0 commit comments

Comments
 (0)