From 863ba8d2c730b13464f6c58f843180aa9cb0bf7a Mon Sep 17 00:00:00 2001 From: s-shiraki Date: Tue, 22 Oct 2024 10:42:26 +0900 Subject: [PATCH] Fix typo in batch job (#2708) Co-authored-by: Kiichiro YUKAWA --- pkg/gateway/mirror/usecase/vald.go | 2 +- pkg/index/job/creation/service/indexer.go | 2 +- pkg/index/job/creation/usecase/creation.go | 2 +- pkg/index/job/readreplica/rotate/usecase/rotate.go | 2 +- pkg/index/job/save/service/indexer.go | 2 +- pkg/index/job/save/usecase/save.go | 2 +- pkg/index/operator/usecase/operator.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/gateway/mirror/usecase/vald.go b/pkg/gateway/mirror/usecase/vald.go index 12976fda0ee..3c1274cc3ea 100644 --- a/pkg/gateway/mirror/usecase/vald.go +++ b/pkg/gateway/mirror/usecase/vald.go @@ -263,7 +263,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/creation/service/indexer.go b/pkg/index/job/creation/service/indexer.go index 87a01591163..1ee74b3adea 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 ede7ddb02a0..cc595b7878e 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 1e01766982c..6f4436bf843 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 192caa0fb56..f1e4682873c 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 34e1fcc7ec9..a1552395cd2 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 } diff --git a/pkg/index/operator/usecase/operator.go b/pkg/index/operator/usecase/operator.go index 323db08081d..86906e2c6de 100644 --- a/pkg/index/operator/usecase/operator.go +++ b/pkg/index/operator/usecase/operator.go @@ -155,7 +155,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 }