forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use InetSocketAddress as function param in RpcClientFactory
SocketAddress represents a socket address with no protocol attachment. It is too general to be useful as often the subclass needs to know the hostname and port info.
- Loading branch information
1 parent
4aefd5b
commit 1fb9c7a
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
java/client/src/main/java/com/youtube/vitess/client/RpcClientFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package com.youtube.vitess.client; | ||
|
||
import java.net.SocketAddress; | ||
import java.net.InetSocketAddress; | ||
|
||
/** | ||
* RpcClientFactory creates a concrete RpcClient. | ||
*/ | ||
public interface RpcClientFactory { | ||
RpcClient create(Context ctx, SocketAddress address); | ||
RpcClient create(Context ctx, InetSocketAddress address); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters