Refactor async worker status and improve file move logic
Refactored worker status management to use async RwLock and updated all related methods to be async. Improved file move logic in hook steps to support cross-filesystem moves by falling back to copy+delete when necessary. Updated API endpoints, download/upload logic, and monitor state transitions to be fully async and more robust. Also added a Debug implementation for Credentials to avoid logging sensitive data, and made minor UI tweaks to disable certain developer options.
This commit is contained in:
1 parent
2fcdb0fe7b
commit
a0b6800c0a
17 files changed
+347
-190
No files matched your search
@@ -45,7 +45,7 @@ export const PauseButton: React.FC<PauseButtonProps> = ({
|
||||
onError?.(error as Error);
|
||||
}
|
||||
};
|
||||
console.log("????????????", streamer.status)
|
||||
|
||||
return (
|
||||
<Button onClick={handlePause} icon={streamer.status === 'Pause'? <IconPlay />: <IconPause />} theme="borderless" aria-label="暂停" />
|
||||
);
|
||||
|
||||
@@ -52,6 +52,7 @@ const Developer: React.FC = () => {
|
||||
formApi.setValue('LOGGING.root.handlers', ['console'])
|
||||
}}
|
||||
showClear={true}
|
||||
disabled
|
||||
>
|
||||
<Select.Option value="DEBUG">DEBUG</Select.Option>
|
||||
<Select.Option value="INFO">INFO</Select.Option>
|
||||
@@ -72,6 +73,7 @@ const Developer: React.FC = () => {
|
||||
formApi.setValue('LOGGING.loggers.biliup.handlers', ['file'])
|
||||
}}
|
||||
showClear={true}
|
||||
disabled
|
||||
>
|
||||
<Select.Option value="DEBUG">DEBUG</Select.Option>
|
||||
<Select.Option value="INFO">INFO</Select.Option>
|
||||
|
||||
Reference in new issue
Block a user