forked from TrueCloudLab/frostfs-node
[#446] innerring: Use alphabet state in processors
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
1332db883e
commit
e05f1e1394
17 changed files with 80 additions and 69 deletions
|
@ -13,16 +13,16 @@ import (
|
|||
)
|
||||
|
||||
type (
|
||||
// ActiveState is a callback interface for inner ring global state
|
||||
ActiveState interface {
|
||||
IsActive() bool
|
||||
// AlphabetState is a callback interface for inner ring global state
|
||||
AlphabetState interface {
|
||||
IsAlphabet() bool
|
||||
}
|
||||
|
||||
// Processor is an event handler for payments in the system.
|
||||
Processor struct {
|
||||
log *logger.Logger
|
||||
|
||||
state ActiveState
|
||||
state AlphabetState
|
||||
|
||||
pool nodeutil.WorkerPool
|
||||
|
||||
|
@ -38,7 +38,7 @@ type (
|
|||
Prm struct {
|
||||
AuditProcessor AuditProcessor
|
||||
BasicIncome BasicIncomeInitializer
|
||||
State ActiveState
|
||||
State AlphabetState
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue