diff --git a/pkg/index/job/creation/service/indexer.go b/pkg/index/job/creation/service/indexer.go index 87a0159116..1ee74b3ade 100644 --- a/pkg/index/job/creation/service/indexer.go +++ b/pkg/index/job/creation/service/indexer.go @@ -175,7 +175,7 @@ func (idx *index) doCreateIndex( switch { case errors.Is(err, context.Canceled): err = status.WrapWithCanceled( - agent.CreateIndexRPCName+" API canceld", err, + agent.CreateIndexRPCName+" API canceled", err, ) attrs = trace.StatusCodeCancelled(err.Error()) case errors.Is(err, context.DeadlineExceeded): diff --git a/pkg/index/job/creation/usecase/creation.go b/pkg/index/job/creation/usecase/creation.go index ede7ddb02a..cc595b7878 100644 --- a/pkg/index/job/creation/usecase/creation.go +++ b/pkg/index/job/creation/usecase/creation.go @@ -208,7 +208,7 @@ func (r *run) Stop(ctx context.Context) (errs error) { return errs } -// PtopStop is a method called after execution of Stop. +// PostStop is a method called after execution of Stop. func (*run) PostStop(_ context.Context) error { return nil } diff --git a/pkg/index/job/readreplica/rotate/usecase/rotate.go b/pkg/index/job/readreplica/rotate/usecase/rotate.go index 1e01766982..6f4436bf84 100644 --- a/pkg/index/job/readreplica/rotate/usecase/rotate.go +++ b/pkg/index/job/readreplica/rotate/usecase/rotate.go @@ -165,7 +165,7 @@ func (r *run) Stop(ctx context.Context) (errs error) { return errs } -// PtopStop is a method called after execution of Stop. +// PostStop is a method called after execution of Stop. func (*run) PostStop(_ context.Context) error { return nil } diff --git a/pkg/index/job/save/service/indexer.go b/pkg/index/job/save/service/indexer.go index 192caa0fb5..f1e4682873 100644 --- a/pkg/index/job/save/service/indexer.go +++ b/pkg/index/job/save/service/indexer.go @@ -171,7 +171,7 @@ func (idx *index) doSaveIndex( switch { case errors.Is(err, context.Canceled): err = status.WrapWithCanceled( - agent.SaveIndexRPCName+" API canceld", err, + agent.SaveIndexRPCName+" API canceled", err, ) attrs = trace.StatusCodeCancelled(err.Error()) case errors.Is(err, context.DeadlineExceeded): diff --git a/pkg/index/job/save/usecase/save.go b/pkg/index/job/save/usecase/save.go index 34e1fcc7ec..a1552395cd 100644 --- a/pkg/index/job/save/usecase/save.go +++ b/pkg/index/job/save/usecase/save.go @@ -207,7 +207,7 @@ func (r *run) Stop(ctx context.Context) (errs error) { return errs } -// PtopStop is a method called after execution of Stop. +// PostStop is a method called after execution of Stop. func (*run) PostStop(_ context.Context) error { return nil }