From c68a7bcc9a54853744110ab509be66af2dedc15e Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Mon, 7 Oct 2024 21:16:00 +0000 Subject: [PATCH] feat(methods): add new renamed methods start stop --- methods.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/methods.go b/methods.go index fe56f12..9e80a0c 100644 --- a/methods.go +++ b/methods.go @@ -437,6 +437,14 @@ func (c *Client) GetTransferInfoCtx(ctx context.Context) (*TransferInfo, error) return &info, nil } +func (c *Client) Stop(hashes []string) error { + return c.PauseCtx(context.Background(), hashes) +} + +func (c *Client) StopCtx(ctx context.Context, hashes []string) error { + return c.PauseCtx(ctx, hashes) +} + func (c *Client) Pause(hashes []string) error { return c.PauseCtx(context.Background(), hashes) }