Skip to content

Commit

Permalink
waiter: Update documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Baidakov <[email protected]>
  • Loading branch information
smallhive committed Jun 21, 2023
1 parent 9c26764 commit 5a4c4f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion waiter/container_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (w *ContainerDeleteWaiter) SetPollInterval(interval time.Duration) {

// ContainerDelete sends request to remove the NeoFS container.
//
// See documentation for function in [client.Client.ContainerDelete].
// ContainerDelete uses ContainerDeleteExecutor to delete and check the container is deleted.
func (w ContainerDeleteWaiter) ContainerDelete(ctx context.Context, id cid.ID, prm client.PrmContainerDelete) error {
if err := w.executor.ContainerDelete(ctx, id, prm); err != nil {
return fmt.Errorf("delete: %w", err)
Expand Down
2 changes: 1 addition & 1 deletion waiter/container_eacl.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (w *ContainerSetEACLWaiter) SetPollInterval(interval time.Duration) {

// ContainerSetEACL sends request to update eACL table of the NeoFS container.
//
// See documentation for function in [client.Client.ContainerSetEACL].
// ContainerSetEACL uses ContainerSetEACLExecutor to setEacl and check the eacl is set.
func (w ContainerSetEACLWaiter) ContainerSetEACL(ctx context.Context, table eacl.Table, prm client.PrmContainerSetEACL) error {
if err := w.executor.ContainerSetEACL(ctx, table, prm); err != nil {
return fmt.Errorf("container setEacl: %w", err)
Expand Down
2 changes: 1 addition & 1 deletion waiter/container_put.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (w *ContainerPutWaiter) SetPollInterval(interval time.Duration) {

// ContainerPut sends request to save container in NeoFS.
//
// See documentation for function in [client.Client.ContainerPut].
// ContainerPut uses ContainerPutExecutor to create container and check the container is created.
func (w ContainerPutWaiter) ContainerPut(ctx context.Context, cont container.Container, prm client.PrmContainerPut) (cid.ID, error) {
id, err := w.executor.ContainerPut(ctx, cont, prm)
if err != nil {
Expand Down

0 comments on commit 5a4c4f4

Please sign in to comment.