aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/store
diff options
context:
space:
mode:
Diffstat (limited to 'internal/store')
-rw-r--r--internal/store/store.go2
-rw-r--r--internal/store/store_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/store/store.go b/internal/store/store.go
index 7475c211..4fefd5c9 100644
--- a/internal/store/store.go
+++ b/internal/store/store.go
@@ -136,7 +136,7 @@ func (s *Store) Segments() (iter.Seq[SegmentIdentity], int, error) {
si.Err = &hst.AppError{Step: step, Err: err,
Msg: "skipped non-identity entry " + strconv.Quote(ent.Name())}
goto out
- } else if v < hst.IdentityMin || v > hst.IdentityMax {
+ } else if v < hst.IdentityStart || v > hst.IdentityEnd {
si.Err = &hst.AppError{Step: step, Err: syscall.ERANGE,
Msg: "skipped out of bounds entry " + strconv.Itoa(v)}
goto out
diff --git a/internal/store/store_test.go b/internal/store/store_test.go
index e37f1bf1..54f28bdd 100644
--- a/internal/store/store_test.go
+++ b/internal/store/store_test.go
@@ -339,7 +339,7 @@ func TestStoreAll(t *testing.T) {
{ID: (hst.ID)(bytes.Repeat([]byte{0xfe}, len(hst.ID{}))), PID: 0xbed, ShimPID: 0xfff, Config: func() *hst.Config {
template := hst.Template()
- template.Identity = hst.IdentityMax
+ template.Identity = hst.IdentityEnd
return template
}(), Time: time.Unix(0, 0xcafebabe0)},
{ID: (hst.ID)(bytes.Repeat([]byte{0xfc}, len(hst.ID{}))), PID: 0x1bed, ShimPID: 0x1fff, Config: func() *hst.Config {