Skip to content

Commit

Permalink
Use context.Background()
Browse files Browse the repository at this point in the history
  • Loading branch information
d-gol committed Dec 24, 2022
1 parent 3d1460a commit 55ba2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/new-ui/v1beta1/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ func (k *KatibUIHandler) FetchTrialLogs(w http.ResponseWriter, r *http.Request)
}

trial := &trialsv1beta1.Trial{}
if err := k.katibClient.GetClient().Get(context.TODO(), types.NamespacedName{Name: trialName, Namespace: namespace}, trial); err != nil {
if err := k.katibClient.GetClient().Get(context.Background(), types.NamespacedName{Name: trialName, Namespace: namespace}, trial); err != nil {
log.Printf("GetLogs failed: %v", err)
http.Error(w, err.Error(), http.StatusInternalServerError)
return
Expand Down

0 comments on commit 55ba2ce

Please sign in to comment.