(VDB-570) Handle duplicate storage diffs

- If processing a new diff for a row that already exists in the DB,
  ignore the error without logging or queueing
- If processing a queued diff for a row that already exists, remove
  it from the queue
This commit is contained in:
Rob Mulholand
2019-05-02 11:39:16 -05:00
parent 782e3fd095
commit 36c4da372b
6 changed files with 42 additions and 16 deletions
+3
View File
@@ -17,9 +17,12 @@
package utils
import (
"errors"
"fmt"
)
var ErrRowExists = errors.New("parsed row for storage diff already exists")
type ErrContractNotFound struct {
Contract string
}