Skip to content

Commit 330fa98

Browse files
committed
avoid ambiguous function calls
1 parent 633f5bf commit 330fa98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/sentry/client.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule Sentry.Client do
2121
"""
2222
@spec send_event(%Event{}) :: {:ok, String.t} | :error
2323
def send_event(%Event{} = event) do
24-
{endpoint, public_key, secret_key} = get_dsn!
24+
{endpoint, public_key, secret_key} = get_dsn!()
2525

2626
auth_headers = authorization_headers(public_key, secret_key)
2727
body = Poison.encode!(event)
@@ -99,7 +99,7 @@ defmodule Sentry.Client do
9999
@spec get_dsn! :: get_dsn
100100
def get_dsn! do
101101
# {PROTOCOL}://{PUBLIC_KEY}:{SECRET_KEY}@{HOST}/{PATH}{PROJECT_ID}
102-
%URI{userinfo: userinfo, host: host, port: port, path: path, scheme: protocol} = URI.parse(fetch_dsn)
102+
%URI{userinfo: userinfo, host: host, port: port, path: path, scheme: protocol} = URI.parse(fetch_dsn())
103103
[public_key, secret_key] = String.split(userinfo, ":", parts: 2)
104104
[_, binary_project_id] = String.split(path, "/")
105105
project_id = String.to_integer(binary_project_id)

0 commit comments

Comments
 (0)