Skip to content

Commit

Permalink
storage,sqlite: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Oct 22, 2024
1 parent 2c06116 commit 442fd7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion host/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ func (vm *VolumeManager) SectorReferences(root types.Hash256) (SectorReference,
return vm.vs.SectorReferences(root)
}

// HasSector
// HasSector returns true if the host is storing the sector.
func (vm *VolumeManager) HasSector(root types.Hash256) (bool, error) {
return vm.vs.HasSector(root)
}
Expand Down
2 changes: 1 addition & 1 deletion persist/sqlite/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func (s *Store) StoreTempSector(root types.Hash256, expiration uint64, fn func(l
var location storage.SectorLocation
var exists bool

// this wierd manual locking and two-stage transaction is required to ensure
// this weird manual locking and two-stage transaction is required to ensure
// atomicity with the disk without locking the whole database while
// waiting on IO that may be slow. In a database with saner locking, this
// could be a single transaction.
Expand Down
2 changes: 1 addition & 1 deletion persist/sqlite/volumes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func TestVolumeSetReadOnly(t *testing.T) {
t.Fatal(err)
}

//add another sector to the volume, should fail with
// add another sector to the volume, should fail with
// ErrNotEnoughStorage
err = db.StoreTempSector(frand.Entropy256(), 1, func(loc storage.SectorLocation) error { return nil })
if !errors.Is(err, storage.ErrNotEnoughStorage) {
Expand Down

0 comments on commit 442fd7b

Please sign in to comment.