Merge pull request #13947 from shaobo322/fix_improper_spell

fix improper spelling
This commit is contained in:
Steven Zou 2021-02-01 16:50:02 +08:00 committed by GitHub
commit 4737a394ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,13 +63,13 @@ var JobService = &Bootstrap{}
// Bootstrap is coordinating process to help load and start the other components to serve.
type Bootstrap struct {
jobConextInitializer job.ContextInitializer
jobContextInitializer job.ContextInitializer
}
// SetJobContextInitializer set the job context initializer
func (bs *Bootstrap) SetJobContextInitializer(initializer job.ContextInitializer) {
if initializer != nil {
bs.jobConextInitializer = initializer
bs.jobContextInitializer = initializer
}
}
@ -83,8 +83,8 @@ func (bs *Bootstrap) LoadAndRun(ctx context.Context, cancel context.CancelFunc)
}
// Build specified job context
if bs.jobConextInitializer != nil {
rootContext.JobContext, err = bs.jobConextInitializer(ctx)
if bs.jobContextInitializer != nil {
rootContext.JobContext, err = bs.jobContextInitializer(ctx)
if err != nil {
return errors.Errorf("initialize job context error: %s", err)
}