[#597] *: Fix linter warnings

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-08-11 09:54:48 +03:00
parent 20af34ecdb
commit b44a8dd46c
2 changed files with 4 additions and 2 deletions

View file

@ -63,6 +63,7 @@ var listContainersCmd = &cobra.Command{
continue
}
cnrID := cnrID
prmGet.ClientParams.ContainerID = &cnrID
res, err := internalclient.GetContainer(cmd.Context(), prmGet)
if err != nil {

View file

@ -2,9 +2,9 @@ package blobstortest
import (
"context"
"crypto/rand"
mrand "math/rand"
"testing"
"time"
objectCore "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/core/object"
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/blobstor/common"
@ -87,7 +87,8 @@ func NewObject(sz uint64) *objectSDK.Object {
raw.SetContainerID(cidtest.ID())
payload := make([]byte, sz)
rand.Read(payload)
r := mrand.New(mrand.NewSource(time.Now().UnixNano()))
r.Read(payload)
raw.SetPayload(payload)
// fit the binary size to the required