feature: fail over from index

This commit is contained in:
tanyawen01770
2023-01-28 19:53:06 +08:00
parent 77946b2382
commit 0087216c0a
6 changed files with 50 additions and 55 deletions
@@ -39,7 +39,7 @@ public class TrackerGroup {
* @return connected tracker server, null for fail
*/
public TrackerServer getTrackerServer(int serverIndex) throws IOException {
return new TrackerServer(this.tracker_servers[serverIndex]);
return new TrackerServer(this.tracker_servers[serverIndex], serverIndex);
}
/**
* return connected tracker server