set the max file key when ever possible

This commit is contained in:
Chris Lu 2019-07-17 23:23:01 -07:00
parent c33f423955
commit 0264a7f50a

View file

@ -52,8 +52,9 @@ func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServ
return err
}
t.Sequence.SetMax(heartbeat.MaxFileKey)
if dn == nil {
t.Sequence.SetMax(heartbeat.MaxFileKey)
if heartbeat.Ip == "" {
if pr, ok := peer.FromContext(stream.Context()); ok {
if pr.Addr != net.Addr(nil) {