Skip to content

Commit d99963c

Browse files
committed
Ignore missing row error
1 parent f0fa129 commit d99963c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rolling-shutter/keyperimpl/gnosis/newslot.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ func (kpr *Keyper) maybeTriggerDecryption(ctx context.Context, slot uint64) erro
4949

5050
gnosisKeyperDB := gnosisdatabase.New(kpr.dbpool)
5151
syncedUntil, err := gnosisKeyperDB.GetTransactionSubmittedEventsSyncedUntil(ctx)
52-
if err != nil {
52+
if err != nil && err != pgx.ErrNoRows {
53+
// pgx.ErrNoRows is expected if we're not part of the keyper set (which is checked later).
54+
// That's because non-keypers don't sync transaction submitted events.
5355
return errors.Wrap(err, "failed to query transaction submitted sync status from db")
5456
}
5557
if syncedUntil.Slot >= int64(slot) {

0 commit comments

Comments
 (0)