Skip to content

Commit

Permalink
[RPC] Fix android rpc connection to tracker (apache#8327)
Browse files Browse the repository at this point in the history
* [RPC] Fix android rpc connection to tracker

After commit 0bbaf0e, android_rpc wasn't able connect to rpc_tracker.
Added addr field to cinfo.

* Fix CI
  • Loading branch information
echuraev authored and ylc committed Jan 13, 2022
1 parent 86fee54 commit 12d53aa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ private boolean needRefreshKey() throws IOException {

// handcrafted JSON
private String generateCinfo(String key) {
String cinfo = "{\"key\" : " + "\"server:" + key + "\"}";
String cinfo = "{\"key\" : " + "\"server:" + key + "\", \"addr\": [\""
+ trackerHost + "\", \"" + trackerPort + "\"]}";
return "[" + RPC.TrackerCode.UPDATE_INFO + ", " + cinfo + "]";
}

Expand Down

0 comments on commit 12d53aa

Please sign in to comment.