-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Fix 500 Error After Setting Authorized IP #7334
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -259,7 +259,7 @@ const get = async () => { | |
} | ||
paramModel.value.memoryLimit = res.data.memoryLimit; | ||
paramModel.value.cpuQuota = res.data.cpuQuota; | ||
paramModel.value.memoryUnit = res.data.memoryUnit !== '' ? res.data.memoryUnit : 'MB'; | ||
paramModel.value.memoryUnit = res.data.memoryUnit !== '' ? res.data.memoryUnit : 'M'; | ||
paramModel.value.allowPort = res.data.allowPort; | ||
paramModel.value.containerName = res.data.containerName; | ||
paramModel.value.advanced = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The changes between lines 259 in both versions of the code indicate an inconsistency in handling memory units. The original code assigns "M" to Original Code snippet (line 259):
Corrected Version:
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The provided code change replaces "ip_limit" with "err_ip_limit" in an error handling function named
WhiteAllow
. The change does not introduce any obvious irregularities or significant performance issues, unless there was a specific context that requires such wording changes. It simply updates one of the strings used to identify or describe errors within the application.If this is part of a larger project where consistency and possibly internationalization (i18n) considerations are at play, ensuring that all error messages align across resources might be advisable. However, for now, it seems the update addresses internal naming conventions rather than impacting functionality directly.
Recommendations: While the change itself doesn't require immediate attention, maintaining consistent error message names can improve readability and maintainability, especially if i18n practices are followed in future modifications.