Skip to content

Commit

Permalink
refactoring execution UpdateBackupMetrics, to avoid context canceled …
Browse files Browse the repository at this point in the history
…error, fix #814
  • Loading branch information
Slach committed Jan 25, 2024
1 parent 5e296ff commit f2edb85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ func (api *APIServer) httpUploadHandler(w http.ResponseWriter, r *http.Request)
}

go func() {
commandId, ctx := status.Current.Start(fullCommand)
commandId, _ := status.Current.Start(fullCommand)
err, _ := api.metrics.ExecuteWithMetrics("upload", 0, func() error {
b := backup.NewBackuper(cfg)
return b.Upload(name, diffFrom, diffFromRemote, tablePattern, partitionsToBackup, schemaOnly, resume, commandId)
Expand Down

0 comments on commit f2edb85

Please sign in to comment.