mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-27 19:17:47 +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.
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
@ -82,8 +82,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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user