frostfs-node/pkg/services
Evgenii Stratonikov 1779664644 [#2058] services/policer: Fix panic in shardPolicyWorker
```
2022/11/15 08:40:56 worker exits from a panic: runtime error: index out of range [0] with length 0
2022/11/15 08:40:56 worker exits from panic: goroutine 1188 [running]:
github.com/panjf2000/ants/v2.(*goWorker).run.func1.1()
	github.com/panjf2000/ants/v2@v2.4.0/worker.go:58 +0x10c
panic({0x1042b60, 0xc0015ae018})
	runtime/panic.go:1038 +0x215
github.com/nspcc-dev/neofs-node/pkg/services/policer.(*Policer).shardPolicyWorker.func1()
	github.com/nspcc-dev/neofs-node/pkg/services/policer/process.go:65 +0x366
github.com/panjf2000/ants/v2.(*goWorker).run.func1()
	github.com/panjf2000/ants/v2@v2.4.0/worker.go:68 +0x97
created by github.com/panjf2000/ants/v2.(*goWorker).run
	github.com/panjf2000/ants/v2@v2.4.0/worker.go:48 +0x68
```

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
2022-11-19 11:01:04 +03:00
..
accounting [#1910] .golangci.yml: Add godot linker 2022-10-18 15:08:26 +03:00
audit [#1910] .golangci.yml: Add predeclared linker 2022-10-18 15:08:26 +03:00
container [#1910] .golangci.yml: Add godot linker 2022-10-18 15:08:26 +03:00
control [#1916] control: Check maintenance allowance on Control server 2022-10-24 09:20:24 +04:00
netmap [#1910] .golangci.yml: Add godot linker 2022-10-18 15:08:26 +03:00
notificator [#1770] logger: Refactor Logger component 2022-10-12 18:11:05 +03:00
object [#2040] node: Do not attach tokens in the assembly process 2022-11-19 11:01:04 +03:00
object_manager [#1910] .golangci.yml: Add predeclared linker 2022-10-18 15:08:26 +03:00
policer [#2058] services/policer: Fix panic in shardPolicyWorker 2022-11-19 11:01:04 +03:00
replicator [#1765] Use hex format to print storage node ID 2022-10-13 12:55:21 +03:00
reputation [#1910] .golangci.yml: Add godot linker 2022-10-18 15:08:26 +03:00
session [#1930] services/session: Log calling Create RPC 2022-10-24 17:45:22 +03:00
tree [#1940] Removing all trees by container ID if tree ID is empty in pilorama.Forest.TreeDrop 2022-11-19 11:01:04 +03:00
util [#1687] *: Perform go fmt using go v1.19 2022-08-22 18:59:57 +03:00