forked from TrueCloudLab/frostfs-s3-gw
[#544] layer: Remove no longer needed deleteContainer
method
Call `DeleteContainer` on `NeoFS` component directly. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
f596c8be06
commit
a8fc313ff5
2 changed files with 1 additions and 5 deletions
|
@ -179,7 +179,3 @@ func (n *layer) setContainerEACLTable(ctx context.Context, idCnr cid.ID, table *
|
||||||
func (n *layer) GetContainerEACL(ctx context.Context, idCnr cid.ID) (*eacl.Table, error) {
|
func (n *layer) GetContainerEACL(ctx context.Context, idCnr cid.ID) (*eacl.Table, error) {
|
||||||
return n.neoFS.ContainerEACL(ctx, idCnr)
|
return n.neoFS.ContainerEACL(ctx, idCnr)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (n *layer) deleteContainer(ctx context.Context, idCnr cid.ID, sessionToken *session.Container) error {
|
|
||||||
return n.neoFS.DeleteContainer(ctx, idCnr, sessionToken)
|
|
||||||
}
|
|
||||||
|
|
|
@ -659,5 +659,5 @@ func (n *layer) DeleteBucket(ctx context.Context, p *DeleteBucketParams) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
n.bucketCache.Delete(p.BktInfo.Name)
|
n.bucketCache.Delete(p.BktInfo.Name)
|
||||||
return n.deleteContainer(ctx, p.BktInfo.CID, p.SessionToken)
|
return n.neoFS.DeleteContainer(ctx, p.BktInfo.CID, p.SessionToken)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue