Skip to content

Commit

Permalink
Fixed Req deprecation about redact_auth
Browse files Browse the repository at this point in the history
  • Loading branch information
GRoguelon committed Jun 4, 2024
1 parent 88a9269 commit b55a729
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/elasticsearch_ex/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ defmodule ElasticsearchEx.Client do

## Module attributes

@redact_auth Mix.env() == :prod

@content_type_key "content-type"

@application_json "application/json"
Expand All @@ -22,7 +20,7 @@ defmodule ElasticsearchEx.Client do
def request(method, path, headers, body, opts \\ []) when is_list(opts) do
{cluster, opts} = get_cluster_configuration(opts)

Req.new(method: method, redact_auth: @redact_auth, compressed: true)
Req.new(method: method, compressed: true)
|> set_uri_and_userinfo(cluster, path)
|> set_headers(cluster, headers)
|> set_body(body)
Expand Down

0 comments on commit b55a729

Please sign in to comment.