Skip to content

Commit

Permalink
Changes due to review
Browse files Browse the repository at this point in the history
  • Loading branch information
alallema committed Jan 31, 2022
1 parent 0ccb3f7 commit d59a75b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type ClientInterface interface {
GetTask(taskID int64) (resp *Task, err error)
GetTasks() (resp *ResultTask, err error)
WaitForTask(ctx context.Context, interval time.Duration, task *Task) (*Task, error)
DefaultWaitForTask(taskID *Task) (*Task, error)
DefaultWaitForTask(task *Task) (*Task, error)
}

var _ ClientInterface = &Client{}
Expand Down
8 changes: 4 additions & 4 deletions index.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ type IndexInterface interface {
UpdateFilterableAttributes(request *[]string) (resp *Task, err error)
ResetFilterableAttributes() (resp *Task, err error)

WaitForTask(ctx context.Context, interval time.Duration, taskID *Task) (*Task, error)
DefaultWaitForTask(taskID *Task) (*Task, error)
WaitForTask(ctx context.Context, interval time.Duration, task *Task) (*Task, error)
DefaultWaitForTask(task *Task) (*Task, error)
}

var _ IndexInterface = &Index{}
Expand Down Expand Up @@ -208,6 +208,6 @@ func (i Index) DefaultWaitForTask(taskID *Task) (*Task, error) {
func (i Index) WaitForTask(
ctx context.Context,
interval time.Duration,
taskID *Task) (*Task, error) {
return i.client.WaitForTask(ctx, interval, taskID)
task *Task) (*Task, error) {
return i.client.WaitForTask(ctx, interval, task)
}

0 comments on commit d59a75b

Please sign in to comment.