Skip to content

Commit 3ec1762

Browse files
committed
Set client name on connect based on user-specified id
Closes #510
1 parent c48d9d1 commit 3ec1762

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/redis/client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def connect
9494
establish_connection
9595
call [:auth, password] if password
9696
call [:select, db] if db != 0
97+
call [:client, :setname, @options[:id]] if @options[:id]
9798
@connector.check(self)
9899
end
99100

0 commit comments

Comments
 (0)