Skip to content

Add Connection#getSocketString() method#3137

Closed
sazzad16 wants to merge 1 commit intoredis:masterfrom
sazzad16:connection-identifier
Closed

Add Connection#getSocketString() method#3137
sazzad16 wants to merge 1 commit intoredis:masterfrom
sazzad16:connection-identifier

Conversation

@sazzad16
Copy link
Copy Markdown
Contributor

@sazzad16 sazzad16 commented Sep 12, 2022

Inspiration: #3058

@sazzad16 sazzad16 added this to the 4.3.0 milestone Sep 12, 2022
@sazzad16 sazzad16 removed this from the 4.3.0 milestone Sep 13, 2022
*/
public String getSocketString() {
connect();
return "" + this.socket.getInetAddress() + ':' + this.socket.getPort();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return "" + this.socket.getInetAddress() + ':' + this.socket.getPort();
return this.socket.getInetAddress() + ':' + this.socket.getPort();

@sazzad16
Copy link
Copy Markdown
Contributor Author

Closed by #3745

@sazzad16 sazzad16 closed this Aug 12, 2024
@sazzad16 sazzad16 deleted the connection-identifier branch August 12, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants