From b7ee05088cd808479a0b132ee103a3eb419deeb9 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Mon, 12 Oct 2020 13:26:05 +0300 Subject: [PATCH] [#86] Use alphabet processor in inner ring app Signed-off-by: Alex Vanin --- pkg/innerring/innerring.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkg/innerring/innerring.go b/pkg/innerring/innerring.go index a7278a60d..5bc1743f4 100644 --- a/pkg/innerring/innerring.go +++ b/pkg/innerring/innerring.go @@ -8,6 +8,7 @@ import ( "github.com/nspcc-dev/neo-go/pkg/util" crypto "github.com/nspcc-dev/neofs-crypto" "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/container" "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 } + // 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 audit scheduler