~singpolyma/jmp-pay

ref: 42df6be0431a2b626637433a1748ea7a50f40644 jmp-pay/bin/detect_duplicate_addrs -rwxr-xr-x 300 bytes
42df6be0Stephen Paul Weber Merge branch 'rubocop' 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/ruby
# frozen_string_literal: true

require "redis"
require_relative "../lib/redis_addresses"

redis = Redis.new

get_addresses_with_users(redis).each do |addr, keys|
	if keys.length > 1
		puts "#{addr} is used by the following " \
		     "#{keys.length} keys: #{keys.join(' ')}"
	end
end