frostfs-node/pkg/local_object_storage/engine
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
..
container.go [#373] metabase: Add metrics 2023-06-21 15:13:26 +03:00
control.go [#1341] .golangci.yml: Replace exportloopref with copyloopvar 2024-08-28 15:44:41 +00:00
control_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
delete.go [#1295] engine: Log object address in case of error 2024-08-06 09:45:43 +03:00
delete_test.go [#1016] frostfs-node: Fix gopls issues 2024-03-01 12:13:43 +03:00
engine.go Reapply "[#446] engine: Move to read-only on blobstor errors" 2024-06-13 07:35:22 +00:00
engine_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
error_test.go Reapply "[#446] engine: Move to read-only on blobstor errors" 2024-06-13 07:35:22 +00:00
evacuate.go [#1222] engine: Fix tree evacuation 2024-07-04 10:38:10 +03:00
evacuate_limiter.go [#1043] control: Add ResetEvacuationStatus implementation 2024-03-13 10:29:45 +00:00
evacuate_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
exists.go [#1295] engine: Log object address in case of error 2024-08-06 09:45:43 +03:00
get.go [#1295] engine: Log object address in case of error 2024-08-06 09:45:43 +03:00
head.go [#1295] getSvc: Assemble complex EC object headers without linking object 2024-08-06 16:48:12 +03:00
head_test.go [#1016] frostfs-node: Fix gopls issues 2024-03-01 12:13:43 +03:00
info.go Rename package name 2023-03-07 16:38:26 +03:00
inhume.go [#1295] engine: Log object address in case of error 2024-08-06 09:45:43 +03:00
inhume_test.go [#1016] frostfs-node: Fix gopls issues 2024-03-01 12:13:43 +03:00
list.go [#1129] policer: Add EC chunk replication 2024-05-16 16:28:48 +03:00
list_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
lock.go [#1295] engine: Resolve funlen linter 2024-08-06 09:45:47 +03:00
lock_test.go [#930] gc: Stop internal activity by context 2024-01-31 08:30:34 +00:00
metrics.go [#451] metrics: Move to internal 2024-06-25 08:52:37 +00:00
put.go [#1295] engine: Log object address in case of error 2024-08-06 09:45:43 +03:00
range.go [#1295] engine: Log object address in case of error 2024-08-06 09:45:43 +03:00
rebuild_limiter.go [#661] blobovniczatree: Make Rebuild concurrent 2023-12-07 15:37:33 +03:00
remove_copies.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
remove_copies_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
select.go [#496] node: Fix linter importas 2023-07-06 15:36:41 +03:00
shards.go [#1341] .golangci.yml: Replace exportloopref with copyloopvar 2024-08-28 15:44:41 +00:00
shards_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
tree.go [#1251] pilorama: Allow traversing multiple branches in parallel 2024-07-17 11:25:07 +03:00
tree_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
writecache.go [#1341] .golangci.yml: Replace exportloopref with copyloopvar 2024-08-28 15:44:41 +00:00