fix test error

This commit is contained in:
Chris Lu 2019-07-31 02:09:04 -07:00
parent b18ce7abf9
commit ca2b81a944

View File

@ -249,7 +249,7 @@ func (ms *MasterServer) KeepConnected(stream master_pb.Seaweed_KeepConnectedServ
func (ms *MasterServer) informNewLeader(stream master_pb.Seaweed_KeepConnectedServer) error {
leader, err := ms.Topo.Leader()
if err != nil {
glog.Error("topo leader: %v", err)
glog.Errorf("topo leader: %v", err)
return raft.NotLeaderError
}
if err := stream.Send(&master_pb.VolumeLocation{