Skip to content

Commit

Permalink
[#3] fix dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
pawurb committed Oct 2, 2024
1 parent 91123b7 commit 11a95ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/pg-locks-monitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module PgLocksMonitor
def self.snapshot!
locks = RailsPgExtras.locks(
locks = RubyPgExtras.locks(
in_format: :hash,
).select do |lock|
if (age = lock.fetch("age"))
Expand All @@ -18,7 +18,7 @@ def self.snapshot!
configuration.notifier_class.call(locks)
end

blocking = RailsPgExtras.blocking(in_format: :hash).select do |block|
blocking = RubyPgExtras.blocking(in_format: :hash).select do |block|
(ActiveSupport::Duration.parse(block.fetch("blocking_duration")).to_f * 1000) > configuration.blocking_min_duration_ms
end.select(&configuration.blocking_filter_proc)
.first(configuration.locks_limit)
Expand Down
2 changes: 1 addition & 1 deletion lib/pg_locks_monitor/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module PgLocksMonitor
VERSION = "0.2.0"
VERSION = "0.2.1"
end

0 comments on commit 11a95ca

Please sign in to comment.