frostfs-node/pkg/services/policer
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
..
check.go [#1502] node: Store lock object on every container node 2022-11-19 11:01:04 +03:00
check_test.go [#1680] replicator: Work with netmap.NodeInfo in TaskResult 2022-10-11 12:54:27 +03:00
policer.go [#1910] .golangci.yml: Add predeclared linker 2022-10-18 15:08:26 +03:00
process.go [#2058] services/policer: Fix panic in shardPolicyWorker 2022-11-19 11:01:04 +03:00
queue.go [#1502] node: Store lock object on every container node 2022-11-19 11:01:04 +03:00