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
|
@ -251,13 +251,17 @@ func (c *Context) objectHomoHash(id *oidSDK.ID) []byte {
|
|||
}
|
||||
|
||||
func (c *Context) updateHeadResponses(hdr *object.Object) {
|
||||
id, ok := hdr.ID()
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
||||
strID := id.EncodeToString()
|
||||
cs, _ := hdr.PayloadHomomorphicHash()
|
||||
|
||||
c.headMtx.Lock()
|
||||
defer c.headMtx.Unlock()
|
||||
|
||||
strID := hdr.ID().String()
|
||||
|
||||
cs, _ := hdr.PayloadHomomorphicHash()
|
||||
|
||||
if _, ok := c.headResponses[strID]; !ok {
|
||||
c.headResponses[strID] = shortHeader{
|
||||
tzhash: cs.Value(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue