Skip to content

Commit

Permalink
[RPC] Fix android rpc connection to tracker (#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 Jun 28, 2021
1 parent 36fc525 commit 5e75ffa
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 5e75ffa

Please sign in to comment.