frostfs-node/pkg/local_object_storage/metabase
Ekaterina Lebedeva a685fcdc96
All checks were successful
DCO action / DCO (pull_request) Successful in 2m41s
Tests and linters / Run gofumpt (pull_request) Successful in 2m32s
Vulncheck / Vulncheck (pull_request) Successful in 2m38s
Build / Build Components (1.23) (pull_request) Successful in 3m0s
Build / Build Components (1.22) (pull_request) Successful in 3m3s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m33s
Tests and linters / Tests (1.22) (pull_request) Successful in 3m34s
Tests and linters / Tests (1.23) (pull_request) Successful in 3m36s
Tests and linters / Staticcheck (pull_request) Successful in 3m35s
Tests and linters / Lint (pull_request) Successful in 4m18s
Tests and linters / Tests with -race (pull_request) Successful in 4m20s
Tests and linters / gopls check (pull_request) Successful in 4m25s
[#1317] go.mod: Use range over int
Since Go 1.22 a "for" statement with a "range" clause is able
to iterate through integer values from zero to an upper limit.

gopatch script:
@@
var i, e expression
@@
-for i := 0; i <= e - 1; i++ {
+for i := range e {
    ...
}

@@
var i, e expression
@@
-for i := 0; i <= e; i++ {
+for i := range e + 1 {
    ...
}

@@
var i, e expression
@@
-for i := 0; i < e; i++ {
+for i := range e {
    ...
}

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2024-09-03 13:00:54 +03:00
..
children.go [#772] node: Apply gofumpt 2023-10-31 17:03:03 +03:00
containers.go [#373] metabase: Add metrics 2023-06-21 15:13:26 +03:00
containers_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
control.go [#1323] metabase: Add expiration epoch buckets 2024-08-22 08:21:40 +00:00
control_test.go [#895] test: Use t.Cleanup only for external resources 2024-01-11 12:32:09 +00:00
counter.go [#1141] metabase: Fix IsUserObject method 2024-05-20 13:24:15 +03:00
counter_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
db.go [#1168] shard: Set Disabled as default mode for components 2024-06-11 15:13:38 +00:00
db_test.go [#959] node: Set mode to shard's components when open it 2024-02-09 14:04:01 +00:00
delete.go [#1323] metabase: Drop user attribute index 2024-08-22 08:21:40 +00:00
delete_ec_test.go [#1323] metabase: Add expiration epoch buckets 2024-08-22 08:21:40 +00:00
delete_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
errors.go [#481] Update frostfs-sdk-go and error pointer receivers 2023-08-09 10:26:53 +00:00
exists.go [#1323] metabase: Add expiration epoch buckets 2024-08-22 08:21:40 +00:00
exists_test.go [#895] test: Use t.Cleanup only for external resources 2024-01-11 12:32:09 +00:00
expired.go [#1323] metabase: Add expiration epoch buckets 2024-08-22 08:21:40 +00:00
expired_test.go [#895] test: Use t.Cleanup only for external resources 2024-01-11 12:32:09 +00:00
generic_test.go [#xx] Avoid manual management of files in tests 2023-08-14 14:01:39 +03:00
get.go [#1323] metabase: Add expiration epoch buckets 2024-08-22 08:21:40 +00:00
get_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
graveyard.go [#1217] Fix grammar mistakes and misspelling 2024-07-01 19:14:25 +03:00
graveyard_test.go [#895] test: Use t.Cleanup only for external resources 2024-01-11 12:32:09 +00:00
index_test.go [#587] Do not use math/rand.Read 2023-08-09 16:02:44 +03:00
info.go [#2057] meta: Fix concurrent mode changes 2022-11-19 11:01:04 +03:00
inhume.go [#1318] metrics: Fix container_size_bytes for EC 2024-08-20 15:33:28 +03:00
inhume_ec_test.go [#1318] meta: Add test TestInhumeECObject 2024-08-20 16:21:27 +03:00
inhume_test.go [#895] test: Use t.Cleanup only for external resources 2024-01-11 12:32:09 +00:00
iterators.go [#1323] metabase: Add expiration epoch buckets 2024-08-22 08:21:40 +00:00
iterators_test.go [#895] test: Use t.Cleanup only for external resources 2024-01-11 12:32:09 +00:00
list.go [#1217] Fix grammar mistakes and misspelling 2024-07-01 19:14:25 +03:00
list_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
lock.go [#1147] node: Implement Lock\Delete requests for EC object 2024-05-30 08:13:04 +00:00
lock_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
metrics.go [#1121] node: Change mode of shard components 2024-06-05 05:55:24 +00:00
mode.go [#1121] node: Change mode of shard components 2024-06-05 05:55:24 +00:00
mode_test.go [#959] node: Set mode to shard's components when open it 2024-02-09 14:04:01 +00:00
put.go [#1323] metabase: Drop user attribute index 2024-08-22 08:21:40 +00:00
put_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
reset_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
select.go [#1323] metabase: Drop user attribute index 2024-08-22 08:21:40 +00:00
select_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
shard_id.go [#1178] shard: Check metabase existence before read shard ID 2024-06-17 09:59:15 +03:00
storage_id.go [#1080] metabase: Add StorageID metric 2024-04-10 10:00:08 +03:00
storage_id_test.go [#1008] metabase: Do not update storageID on put 2024-02-28 11:01:50 +03:00
upgrade.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
upgrade_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
util.go [#1334] metabase: Add upgrade from v2 to v3 2024-08-30 09:06:20 +03:00
version.go [#1334] metabase: Store upgrade flag 2024-08-30 09:06:20 +03:00
VERSION.md [#1323] metabase: Bump version 2024-08-22 08:21:40 +00:00
version_test.go [#1334] metabase: Store upgrade flag 2024-08-30 09:06:20 +03:00