forked from TrueCloudLab/frostfs-node
[#1377] oid, cid: Upgrade SDK package
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
f65898a354
commit
f15e6e888f
118 changed files with 1455 additions and 886 deletions
|
@ -197,7 +197,7 @@ func selectNFromBucket(tx *bbolt.Tx,
|
|||
|
||||
func parseContainerIDWithPostfix(name []byte) (*cid.ID, string) {
|
||||
var (
|
||||
containerID = cid.New()
|
||||
containerID cid.ID
|
||||
containerIDStr = string(name)
|
||||
postfix string
|
||||
)
|
||||
|
@ -208,9 +208,9 @@ func parseContainerIDWithPostfix(name []byte) (*cid.ID, string) {
|
|||
containerIDStr = containerIDStr[:ind]
|
||||
}
|
||||
|
||||
if err := containerID.Parse(containerIDStr); err != nil {
|
||||
if err := containerID.DecodeString(containerIDStr); err != nil {
|
||||
return nil, ""
|
||||
}
|
||||
|
||||
return containerID, postfix
|
||||
return &containerID, postfix
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue