Skip to content

Commit

Permalink
remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpmartinez committed Mar 6, 2024
1 parent bc140c8 commit 22519e8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions common/event_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ func (cache *ForgetfulEventCache) Store(event *edge_ctrl_pb.DataState_Event, onS
}

if cache.index != nil {
if *cache.index >= event.Index {
//already past this index
return nil
}

if *cache.index >= event.Index {
return fmt.Errorf("out of order event detected, currentIndex: %d, recievedIndex: %d, type :%T", *cache.index, event.Index, cache)
}
Expand Down

0 comments on commit 22519e8

Please sign in to comment.