feat(backend): skip raw batch when get incorrect batch version
This commit is contained in:
parent
19f4224519
commit
95cff55e6c
1 changed files with 4 additions and 1 deletions
|
|
@ -98,7 +98,10 @@ func (i *iteratorImpl) Next() bool {
|
|||
i.version = m.Version
|
||||
isBatchMeta = true
|
||||
log.Printf("new batch version: %d", i.version)
|
||||
|
||||
if i.version > 1 {
|
||||
log.Printf("incorrect batch version, skip current batch")
|
||||
return false
|
||||
}
|
||||
case MsgBatchMeta: // Is not required to be present in batch since IOS doesn't have it (though we might change it)
|
||||
if i.index != 0 { // Might be several 0-0 BatchMeta in a row without an error though
|
||||
log.Printf("Batch Meta found at the end of the batch")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue