forked from TrueCloudLab/frostfs-node
[#922] engine: Fix typos and improve naming related to exec blocks
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
6b1ce99c35
commit
a537334f33
9 changed files with 13 additions and 13 deletions
|
@ -40,7 +40,7 @@ func (r *ListContainersRes) Containers() []*cid.ID {
|
|||
//
|
||||
// Returns empty result if executions are blocked (see BlockExecution).
|
||||
func (e *StorageEngine) ContainerSize(prm *ContainerSizePrm) (res *ContainerSizeRes) {
|
||||
err := e.exec(func() error {
|
||||
err := e.execIfNotBlocked(func() error {
|
||||
res = e.containerSize(prm)
|
||||
return nil
|
||||
})
|
||||
|
@ -92,7 +92,7 @@ func (e *StorageEngine) containerSize(prm *ContainerSizePrm) *ContainerSizeRes {
|
|||
//
|
||||
// Returns empty result if executions are blocked (see BlockExecution).
|
||||
func (e *StorageEngine) ListContainers(_ *ListContainersPrm) (res *ListContainersRes) {
|
||||
err := e.exec(func() error {
|
||||
err := e.execIfNotBlocked(func() error {
|
||||
res = e.listContainers()
|
||||
return nil
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue