Invalidate list cache on container events #802

Merged
fyrchik merged 4 commits from fyrchik/frostfs-node:remove-invalidate-cache into master 2023-11-14 19:00:13 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 72933e2d53 - Show all commits

View file

@ -28,7 +28,7 @@ type DelInfo struct {
Owner user.ID
// Epoch indicates when the container was removed.
Epoch int
Epoch uint64
}
// Source is an interface that wraps

View file

@ -63,13 +63,13 @@ func (c *Client) DeletionInfo(cid []byte) (*containercore.DelInfo, error) {
return nil, fmt.Errorf("could not decode container owner id (%s): %w", deletionInfoMethod, err)
}
epoch, err := client.IntFromStackItem(arr[1])
epoch, err := client.BigIntFromStackItem(arr[1])
if err != nil {
return nil, fmt.Errorf("could not get byte array of container signature (%s): %w", deletionInfoMethod, err)
}
return &containercore.DelInfo{
Owner: owner,
Epoch: int(epoch),
Epoch: epoch.Uint64(),
}, nil
}