forked from TrueCloudLab/frostfs-node
[#86] Use alphabet processor in inner ring app
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
f1f20b49db
commit
b7ee05088c
1 changed files with 18 additions and 0 deletions
|
@ -8,6 +8,7 @@ import (
|
||||||
"github.com/nspcc-dev/neo-go/pkg/util"
|
"github.com/nspcc-dev/neo-go/pkg/util"
|
||||||
crypto "github.com/nspcc-dev/neofs-crypto"
|
crypto "github.com/nspcc-dev/neofs-crypto"
|
||||||
"github.com/nspcc-dev/neofs-node/pkg/innerring/invoke"
|
"github.com/nspcc-dev/neofs-node/pkg/innerring/invoke"
|
||||||
|
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/alphabet"
|
||||||
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/balance"
|
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/balance"
|
||||||
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/container"
|
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/container"
|
||||||
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/neofs"
|
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/neofs"
|
||||||
|
@ -221,6 +222,23 @@ func New(ctx context.Context, log *zap.Logger, cfg *viper.Viper) (*Server, error
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// create alphabet processor
|
||||||
|
alphabetProcessor, err := alphabet.New(&alphabet.Params{
|
||||||
|
Log: log,
|
||||||
|
PoolSize: cfg.GetInt("workers.alphabet"),
|
||||||
|
AlphabetContracts: contracts.alphabet,
|
||||||
|
MorphClient: server.morphClient,
|
||||||
|
IRList: server,
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
err = bindMorphProcessor(alphabetProcessor, server)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
// todo: create vivid id component
|
// todo: create vivid id component
|
||||||
// todo: create audit scheduler
|
// todo: create audit scheduler
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue