[#812] pkg/innerring: Support notary notifications in reputation processor
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
a7f6a3df78
commit
dc26a09ec3
4 changed files with 65 additions and 24 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue