Skip to content

Commit

Permalink
Merge pull request #2532 from EspressoSystems/cherry-pick/fix-pebble-…
Browse files Browse the repository at this point in the history
…not-found-error

Check all "not found" errors
  • Loading branch information
PlasmaPower committed Jul 30, 2024
2 parents 647718c + bef86a3 commit 0a167b2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arbnode/dataposter/dbstorage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ import (
"bytes"
"context"
"encoding/hex"
"errors"
"fmt"
"strconv"

"github.com/ethereum/go-ethereum/ethdb"
"github.com/offchainlabs/nitro/arbnode/dataposter/storage"
"github.com/offchainlabs/nitro/util/dbutil"
"github.com/syndtr/goleveldb/leveldb"
)

// Storage implements db based storage for batch poster.
Expand Down Expand Up @@ -61,7 +59,7 @@ func (s *Storage) Get(_ context.Context, index uint64) (*storage.QueuedTransacti
key := idxToKey(index)
value, err := s.db.Get(key)
if err != nil {
if errors.Is(err, leveldb.ErrNotFound) {
if dbutil.IsErrNotFound(err) {
return nil, nil
}
return nil, err
Expand Down

0 comments on commit 0a167b2

Please sign in to comment.