fix: 修复配额说明重复和undefined问题
- 在editStorageForm中初始化oss_storage_quota_value和oss_quota_unit - 删除重复的旧配额说明块,保留新的当前配额设置显示 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
23
backend/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js
generated
vendored
Normal file
23
backend/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import { timing } from "./timing";
|
||||
const DEFER_EVENT_LISTENER_TIME = 3000;
|
||||
export const setSocketTimeout = (request, reject, timeoutInMs = 0) => {
|
||||
const registerTimeout = (offset) => {
|
||||
const timeout = timeoutInMs - offset;
|
||||
const onTimeout = () => {
|
||||
request.destroy();
|
||||
reject(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${timeoutInMs} ms of inactivity (configured by client requestHandler).`), { name: "TimeoutError" }));
|
||||
};
|
||||
if (request.socket) {
|
||||
request.socket.setTimeout(timeout, onTimeout);
|
||||
request.on("close", () => request.socket?.removeListener("timeout", onTimeout));
|
||||
}
|
||||
else {
|
||||
request.setTimeout(timeout, onTimeout);
|
||||
}
|
||||
};
|
||||
if (0 < timeoutInMs && timeoutInMs < 6000) {
|
||||
registerTimeout(0);
|
||||
return 0;
|
||||
}
|
||||
return timing.setTimeout(registerTimeout.bind(null, timeoutInMs === 0 ? 0 : DEFER_EVENT_LISTENER_TIME), DEFER_EVENT_LISTENER_TIME);
|
||||
};
|
||||
Reference in New Issue
Block a user