forked from TrueCloudLab/frostfs-node
[#597] *: Fix linter warnings
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
20af34ecdb
commit
b44a8dd46c
2 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue