Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ def upload_to_aws(local_file, remote_name=None):
#upload_to_aws(local_file, remote_name)
upload_to_qiniu(local_file, remote_name)

print("https://download.pingcap.org/{}".format(remote_name))
print("https://download.pingcap.com/{}".format(remote_name))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

To improve maintainability, it's better to define this hardcoded URL format string as a constant. This makes it easier to manage if the URL needs to be changed again in the future.

For example, you could add DOWNLOAD_URL_FORMAT = "https://download.pingcap.com/{}" near the other constants at the top of the file, and then change this line to:

print(DOWNLOAD_URL_FORMAT.format(remote_name))

Loading