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