[#346] cmd/authmate: Fix NPE in createNeoFS

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-03-03 17:34:31 +03:00 committed by LeL
parent 8fb3835250
commit ac0ffd6136

View file

@ -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
}