From fba0ff4d83557280d4f73c001df3d97039bf6295 Mon Sep 17 00:00:00 2001 From: shaobo Date: Fri, 8 Jan 2021 16:25:34 +0800 Subject: [PATCH] fix improper spelling Signed-off-by: shaobo --- src/jobservice/runtime/bootstrap.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jobservice/runtime/bootstrap.go b/src/jobservice/runtime/bootstrap.go index eb385d7bb..d7eb36caa 100644 --- a/src/jobservice/runtime/bootstrap.go +++ b/src/jobservice/runtime/bootstrap.go @@ -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) }