小修LSDB

This commit is contained in:
free will committed 2022-05-27 19:24:06 +08:00
1 parent 916d235a46
commit 381e1adbc9
1 file changed
+2 -2
+2 -2
View File
@@ -218,8 +218,8 @@ func (l *Lsdb) FindLsa(routerIdentifier *component.Identifier,
//
func (l *Lsdb) IsLsaNew(routerIdentifier *component.Identifier,
lsaType lsa.LsaType, seqNo uint64) bool {
lsa := l.FindLsa(routerIdentifier, lsaType)
if lsa.GetSeqNo() >= seqNo {
iLsa := l.FindLsa(routerIdentifier, lsaType)
if iLsa.GetSeqNo() >= seqNo {
return false
}
return true