mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-15 20:22:01 +01:00
fix improper spelling
Signed-off-by: shaobo <shaobo@caicloud.io>
This commit is contained in:
parent
39fb500318
commit
fba0ff4d83
@ -62,13 +62,13 @@ var JobService = &Bootstrap{}
|
|||||||
|
|
||||||
// Bootstrap is coordinating process to help load and start the other components to serve.
|
// Bootstrap is coordinating process to help load and start the other components to serve.
|
||||||
type Bootstrap struct {
|
type Bootstrap struct {
|
||||||
jobConextInitializer job.ContextInitializer
|
jobContextInitializer job.ContextInitializer
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetJobContextInitializer set the job context initializer
|
// SetJobContextInitializer set the job context initializer
|
||||||
func (bs *Bootstrap) SetJobContextInitializer(initializer job.ContextInitializer) {
|
func (bs *Bootstrap) SetJobContextInitializer(initializer job.ContextInitializer) {
|
||||||
if initializer != nil {
|
if initializer != nil {
|
||||||
bs.jobConextInitializer = initializer
|
bs.jobContextInitializer = initializer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,8 +82,8 @@ func (bs *Bootstrap) LoadAndRun(ctx context.Context, cancel context.CancelFunc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Build specified job context
|
// Build specified job context
|
||||||
if bs.jobConextInitializer != nil {
|
if bs.jobContextInitializer != nil {
|
||||||
rootContext.JobContext, err = bs.jobConextInitializer(ctx)
|
rootContext.JobContext, err = bs.jobContextInitializer(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Errorf("initialize job context error: %s", err)
|
return errors.Errorf("initialize job context error: %s", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user