Skip to content

Commit

Permalink
Fix sentry attrs.
Browse files Browse the repository at this point in the history
  • Loading branch information
xward committed Oct 6, 2023
1 parent 306f68c commit 254c649
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/phoenix_ddos/monitoring/alert_sentry.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule PhoenixDDoS.Monitoring.AlertSentry do
def alert_goes_to_jail(ip, extra \\ %{}) do
attrs = [
"PhoenixDDoS: new ip enter jail",
extra: %{ip: ip} |> Map.merge(extra)
[extra: %{ip: ip} |> Map.merge(extra)]
]

# sentry might not being installed, let use apply/2
Expand Down
14 changes: 2 additions & 12 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule PhoenixDDoS.MixProject do
use Mix.Project

@version "1.1.5"
@version "1.1.6"
@source_url "https://github.com/xward/phoenix_ddos"

def project do
Expand Down Expand Up @@ -48,17 +48,7 @@ defmodule PhoenixDDoS.MixProject do
source_url: @source_url,
# logo: "path/to/logo.png",
extra_section: "GUIDES",
extras: ["README.md"],
groups_for_modules: groups_for_modules()
]
]
end

defp groups_for_modules do
[
Protections: [
PhoenixDDoS.IpRateLimit,
PhoenixDDoS.IpRateLimitPerRequestPath
extras: ["README.md"]
]
]
end
Expand Down

0 comments on commit 254c649

Please sign in to comment.