[#346] cmd/authmate: Fix NPE in createNeoFS
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
8fb3835250
commit
ac0ffd6136
1 changed files with 4 additions and 2 deletions
|
@ -441,8 +441,10 @@ func createNeoFS(ctx context.Context, log *zap.Logger, key *ecdsa.PrivateKey, pe
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
var neoFS neofs.AuthmateNeoFS
|
var neoFS neofs.NeoFS
|
||||||
neoFS.SetConnectionPool(p)
|
neoFS.SetConnectionPool(p)
|
||||||
|
|
||||||
return &neoFS, nil
|
return &neofs.AuthmateNeoFS{
|
||||||
|
NeoFS: &neoFS,
|
||||||
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue