Skip to content

Commit

Permalink
Upgrade versions
Browse files Browse the repository at this point in the history
- Elixir version to 1.10.
- Tesla version to 1.7.0
  • Loading branch information
uzairaslam196 committed May 13, 2023
1 parent f93160e commit b2711c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions lib/tesla/middleware/logger.ex
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ defmodule Tesla.Middleware.Logger do

alias Tesla.Middleware.Logger.Formatter

@config if function_exported?(Application, :compile_env, 3),
do: Application.compile_env(:tesla, __MODULE__, []), else:
Application.get_env(:tesla, __MODULE__, [])
@config Application.compile_env(:tesla, __MODULE__, [])

@format Formatter.compile(@config[:format])

Expand Down
6 changes: 2 additions & 4 deletions lib/tesla/middleware/telemetry.ex
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,8 @@ if Code.ensure_loaded?(:telemetry) do
```
"""

@disable_legacy_event (if function_exported?(Application, :compile_env, 3),
do: Application.compile_env(:tesla, __MODULE__), else:
Application.get_env(:tesla, __MODULE__, []))[:disable_legacy_event] || false

@disable_legacy_event Application.compile_env(:tesla, Tesla.Middleware.Telemetry,
disable_legacy_event: false)[:disable_legacy_event]

@behaviour Tesla.Middleware

Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ defmodule Tesla.Mixfile do
use Mix.Project

@source_url "https://github.com/teamon/tesla"
@version "1.6.1"
@version "1.7.0"

def project do
[
app: :tesla,
version: @version,
description: description(),
package: package(),
elixir: "~> 1.7",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
lockfile: lockfile(System.get_env("LOCKFILE")),
Expand Down

0 comments on commit b2711c0

Please sign in to comment.