Skip to content

Commit 442fd7b

Browse files
committed
storage,sqlite: fix lint
1 parent 2c06116 commit 442fd7b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

host/storage/storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ func (vm *VolumeManager) SectorReferences(root types.Hash256) (SectorReference,
360360
return vm.vs.SectorReferences(root)
361361
}
362362

363-
// HasSector
363+
// HasSector returns true if the host is storing the sector.
364364
func (vm *VolumeManager) HasSector(root types.Hash256) (bool, error) {
365365
return vm.vs.HasSector(root)
366366
}

persist/sqlite/volumes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ func (s *Store) StoreTempSector(root types.Hash256, expiration uint64, fn func(l
366366
var location storage.SectorLocation
367367
var exists bool
368368

369-
// this wierd manual locking and two-stage transaction is required to ensure
369+
// this weird manual locking and two-stage transaction is required to ensure
370370
// atomicity with the disk without locking the whole database while
371371
// waiting on IO that may be slow. In a database with saner locking, this
372372
// could be a single transaction.

persist/sqlite/volumes_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func TestVolumeSetReadOnly(t *testing.T) {
5353
t.Fatal(err)
5454
}
5555

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

0 commit comments

Comments
 (0)