|
@ -66,7 +66,7 @@ func (ms MasterServer) SendHeartbeat(stream pb.Seaweed_SendHeartbeatServer) erro |
|
|
return err |
|
|
return err |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if !t.IsLeader() { |
|
|
|
|
|
|
|
|
// tell the volume servers about the leader
|
|
|
newLeader, err := t.Leader() |
|
|
newLeader, err := t.Leader() |
|
|
if err == nil { |
|
|
if err == nil { |
|
|
if err := stream.Send(&pb.HeartbeatResponse{ |
|
|
if err := stream.Send(&pb.HeartbeatResponse{ |
|
@ -76,6 +76,4 @@ func (ms MasterServer) SendHeartbeat(stream pb.Seaweed_SendHeartbeatServer) erro |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |