From ac0ffd613694c4cc249058120cffcc541c8cd33a Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 3 Mar 2022 17:34:31 +0300 Subject: [PATCH] [#346] cmd/authmate: Fix NPE in `createNeoFS` Signed-off-by: Leonard Lyubich --- cmd/authmate/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/authmate/main.go b/cmd/authmate/main.go index 6f28cce1..8f32e011 100644 --- a/cmd/authmate/main.go +++ b/cmd/authmate/main.go @@ -441,8 +441,10 @@ func createNeoFS(ctx context.Context, log *zap.Logger, key *ecdsa.PrivateKey, pe return nil, err } - var neoFS neofs.AuthmateNeoFS + var neoFS neofs.NeoFS neoFS.SetConnectionPool(p) - return &neoFS, nil + return &neofs.AuthmateNeoFS{ + NeoFS: &neoFS, + }, nil }