diff --git a/host/storage/storage.go b/host/storage/storage.go index f5dcc33c..9b18abe5 100644 --- a/host/storage/storage.go +++ b/host/storage/storage.go @@ -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) } diff --git a/persist/sqlite/volumes.go b/persist/sqlite/volumes.go index 581186f7..b276107c 100644 --- a/persist/sqlite/volumes.go +++ b/persist/sqlite/volumes.go @@ -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. diff --git a/persist/sqlite/volumes_test.go b/persist/sqlite/volumes_test.go index 01852118..4a8e7fc4 100644 --- a/persist/sqlite/volumes_test.go +++ b/persist/sqlite/volumes_test.go @@ -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) {