[#46] authmate: Remove excessive definitions of capacities from slice creations
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
036d4c9cea
commit
d46578ce0b
1 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ func appCommands() []*cli.Command {
|
||||||
func generateGatesKeys(count int) ([]hcs.Credentials, error) {
|
func generateGatesKeys(count int) ([]hcs.Credentials, error) {
|
||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
res = make([]hcs.Credentials, count, count)
|
res = make([]hcs.Credentials, count)
|
||||||
)
|
)
|
||||||
|
|
||||||
for i := 0; i < count; i++ {
|
for i := 0; i < count; i++ {
|
||||||
|
@ -163,7 +163,7 @@ func generateKeys() *cli.Command {
|
||||||
|
|
||||||
log.Info("generated x25519 keys")
|
log.Info("generated x25519 keys")
|
||||||
|
|
||||||
gatesKeys := make([]gateKey, len(csl), len(csl))
|
gatesKeys := make([]gateKey, len(csl))
|
||||||
for i, cs := range csl {
|
for i, cs := range csl {
|
||||||
privateKey, publicKey := cs.PrivateKey().String(), cs.PublicKey().String()
|
privateKey, publicKey := cs.PrivateKey().String(), cs.PublicKey().String()
|
||||||
gatesKeys[i] = gateKey{PrivateKey: privateKey, PublicKey: publicKey}
|
gatesKeys[i] = gateKey{PrivateKey: privateKey, PublicKey: publicKey}
|
||||||
|
|
Loading…
Reference in a new issue