[#812] pkg/innerring: Support notary notifications in reputation processor

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-09-08 18:20:02 +03:00 committed by Alex Vanin
parent a7f6a3df78
commit dc26a09ec3
4 changed files with 65 additions and 24 deletions

View file

@ -19,13 +19,7 @@ func (rp *Processor) handlePutReputation(ev event.Event) {
// send event to the worker pool
err := rp.pool.Submit(func() {
rp.processPut(
put.Epoch(),
peerID,
put.Value(),
)
})
err := rp.pool.Submit(func() { rp.processPut(&put) })
if err != nil {
// there system can be moved into controlled degradation stage
rp.log.Warn("reputation worker pool drained",