@@ -155,7 +155,7 @@ func (h *Handlers) interactiveRun(ctx context.Context, trainingRootFs *afero.Bas
155155
156156func (h * Handlers ) run (ctx context.Context , trainingRootFs * afero.BasePathFs ) (bool , error ) {
157157 // todo - validate if exercise id == training exercise id? to ensure about consistency
158- success , err := h .runExercise (ctx , trainingRootFs )
158+ success , err := h .runExercise (trainingRootFs )
159159
160160 if isExerciseNoLongerAvailable (err ) {
161161 fmt .Println (color .YellowString ("We did update of the exercise code. Your local workspace is out of sync." ))
@@ -180,7 +180,7 @@ func isExerciseNoLongerAvailable(err error) bool {
180180 return status .Code (errors .Cause (err )) == codes .NotFound
181181}
182182
183- func (h * Handlers ) runExercise (ctx context. Context , trainingRootFs * afero.BasePathFs ) (bool , error ) {
183+ func (h * Handlers ) runExercise (trainingRootFs * afero.BasePathFs ) (bool , error ) {
184184 exerciseConfig := h .config .ExerciseConfig (trainingRootFs )
185185
186186 solutionFiles , err := files .NewFiles ().ReadSolutionFiles (trainingRootFs , exerciseConfig .Directory )
@@ -209,13 +209,13 @@ func (h *Handlers) runExercise(ctx context.Context, trainingRootFs *afero.BasePa
209209 Token : h .config .GlobalConfig ().Token ,
210210 }
211211
212- reqStr := strings .ReplaceAll (fmt . Sprintf ( "%s" , req .String () ), h .config .GlobalConfig ().Token , "[token]" )
212+ reqStr := strings .ReplaceAll (req .String (), h .config .GlobalConfig ().Token , "[token]" )
213213 logrus .WithField ("req" , reqStr ).Info ("Request prepared" )
214214
215215 runCtx , cancel := context .WithTimeout (context .Background (), time .Second * 30 )
216216 defer cancel ()
217217
218- stream , err := h .newGrpcClient (ctxWithRequestHeader ( ctx , h . cliMetadata ) ).VerifyExercise (runCtx , req )
218+ stream , err := h .newGrpcClient ().VerifyExercise (runCtx , req )
219219 if err != nil {
220220 return false , err
221221 }
0 commit comments