famosss
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
weed/server/master_grpc_server.go
|
@ -228,7 +228,11 @@ func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServ |
|
|
if err := stream.Send(&master_pb.HeartbeatResponse{ |
|
|
if err := stream.Send(&master_pb.HeartbeatResponse{ |
|
|
Leader: string(newLeader), |
|
|
Leader: string(newLeader), |
|
|
}); err != nil { |
|
|
}); err != nil { |
|
|
glog.Warningf("SendHeartbeat.Send response to to %s:%d %v", dn.Ip, dn.Port, err) |
|
|
|
|
|
|
|
|
if dn != nil { |
|
|
|
|
|
glog.Warningf("SendHeartbeat.Send response to %s:%d %v", dn.Ip, dn.Port, err) |
|
|
|
|
|
} else { |
|
|
|
|
|
glog.Warningf("SendHeartbeat.Send response %v", err) |
|
|
|
|
|
} |
|
|
return err |
|
|
return err |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|