This commit is contained in:
Chris Lu
2020-10-16 11:02:44 -07:00
parent 06e6341097
commit ee1fc6558a
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ func (mc *MasterClient) KeepConnectedToMaster() {
}
}
func (mc *MasterClient) FindLeader(myMasterAddress string) (leader string) {
func (mc *MasterClient) FindLeaderFromOtherPeers(myMasterAddress string) (leader string) {
for _, master := range mc.masters {
if master == myMasterAddress {
continue