@@ -548,7 +548,7 @@ func (d *gossipDiscoveryImpl) resurrectMember(am *proto.SignedGossipMessage, t p
548
548
d .aliveLastTS [string (pkiID )] = & timestamp {
549
549
lastSeen : time .Now (),
550
550
seqNum : t .SeqNum ,
551
- incTime : tsToTime (t .IncNumber ),
551
+ incTime : tsToTime (t .IncNum ),
552
552
}
553
553
554
554
var internalEndpoint string
@@ -722,8 +722,8 @@ func (d *gossipDiscoveryImpl) createAliveMessage(includeInternalEndpoint bool) *
722
722
PkiId : pkiID ,
723
723
},
724
724
Timestamp : & proto.PeerTime {
725
- IncNumber : uint64 (d .incTime ),
726
- SeqNum : seqNum ,
725
+ IncNum : uint64 (d .incTime ),
726
+ SeqNum : seqNum ,
727
727
},
728
728
},
729
729
},
@@ -782,7 +782,7 @@ func (d *gossipDiscoveryImpl) learnExistingMembers(aliveArr []*proto.SignedGossi
782
782
d .logger .Debug ("Updating aliveness data:" , am )
783
783
// update existing aliveness data
784
784
alive := d .aliveLastTS [string (am .Membership .PkiId )]
785
- alive .incTime = tsToTime (am .Timestamp .IncNumber )
785
+ alive .incTime = tsToTime (am .Timestamp .IncNum )
786
786
alive .lastSeen = time .Now ()
787
787
alive .seqNum = am .Timestamp .SeqNum
788
788
@@ -811,7 +811,7 @@ func (d *gossipDiscoveryImpl) learnNewMembers(aliveMembers []*proto.SignedGossip
811
811
continue
812
812
}
813
813
d .aliveLastTS [string (am .GetAliveMsg ().Membership .PkiId )] = & timestamp {
814
- incTime : tsToTime (am .GetAliveMsg ().Timestamp .IncNumber ),
814
+ incTime : tsToTime (am .GetAliveMsg ().Timestamp .IncNum ),
815
815
lastSeen : time .Now (),
816
816
seqNum : am .GetAliveMsg ().Timestamp .SeqNum ,
817
817
}
@@ -825,7 +825,7 @@ func (d *gossipDiscoveryImpl) learnNewMembers(aliveMembers []*proto.SignedGossip
825
825
continue
826
826
}
827
827
d .deadLastTS [string (dm .GetAliveMsg ().Membership .PkiId )] = & timestamp {
828
- incTime : tsToTime (dm .GetAliveMsg ().Timestamp .IncNumber ),
828
+ incTime : tsToTime (dm .GetAliveMsg ().Timestamp .IncNum ),
829
829
lastSeen : time .Now (),
830
830
seqNum : dm .GetAliveMsg ().Timestamp .SeqNum ,
831
831
}
@@ -927,12 +927,12 @@ func equalPKIid(a, b common.PKIidType) bool {
927
927
}
928
928
929
929
func same (a * timestamp , b * proto.PeerTime ) bool {
930
- return uint64 (a .incTime .UnixNano ()) == b .IncNumber && a .seqNum == b .SeqNum
930
+ return uint64 (a .incTime .UnixNano ()) == b .IncNum && a .seqNum == b .SeqNum
931
931
}
932
932
933
933
func before (a * timestamp , b * proto.PeerTime ) bool {
934
- return (uint64 (a .incTime .UnixNano ()) == b .IncNumber && a .seqNum < b .SeqNum ) ||
935
- uint64 (a .incTime .UnixNano ()) < b .IncNumber
934
+ return (uint64 (a .incTime .UnixNano ()) == b .IncNum && a .seqNum < b .SeqNum ) ||
935
+ uint64 (a .incTime .UnixNano ()) < b .IncNum
936
936
}
937
937
938
938
func getAliveTimeInterval () time.Duration {
0 commit comments