Skip to content

Commit

Permalink
stellar#4330: silenced some static check warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sreuland committed Jun 14, 2022
1 parent 956d385 commit ed67e66
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions exp/lighthorizon/archive/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
// have to download many ledgers until it's able to fill the list completely.
// This can be solved by keeping an index/list of empty ledgers.
// TODO: make this configurable.
//lint:ignore U1000 Ignore unused temporarily
const checkpointsToLookup = 1

// Archive here only has the methods we care about, to make caching/wrapping easier
Expand Down
1 change: 1 addition & 0 deletions exp/lighthorizon/index/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func (i *CheckpointIndex) setActive(checkpoint uint32) error {
return nil
}

//lint:ignore U1000 Ignore unused function temporarily
func (i *CheckpointIndex) isActive(checkpoint uint32) bool {
if checkpoint >= i.firstCheckpoint && checkpoint <= i.lastCheckpoint {
b := bitShiftLeft(checkpoint)
Expand Down
1 change: 1 addition & 0 deletions historyarchive/fs_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
type FsCacheBackend struct {
ArchiveBackend
dir string
//lint:ignore U1000 Ignore unused temporarily
knownFiles lruCache
maxFiles int
lru lruCache
Expand Down
1 change: 1 addition & 0 deletions historyarchive/gcs_archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func (b *GCSArchiveBackend) GetFile(pth string) (io.ReadCloser, error) {
r, err := b.bucket.Object(pth).NewReader(context.Background())
if err == storage.ErrObjectNotExist {
// TODO: Check this is right
//lint:ignore SA4006 Ignore unused function temporarily
err = os.ErrNotExist
}
return r, nil
Expand Down

0 comments on commit ed67e66

Please sign in to comment.