1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2026-02-03 23:23:09 +00:00

Compare commits

...

6 Commits

Author SHA1 Message Date
Sunwuyuan
f0a82312c5
Merge pull request #37 from ZeroCatDev/copilot/fix-get-effective-server-url
Fix server rotation resource waste with unified sequential retry logic
2026-01-19 21:46:37 +08:00
copilot-swe-agent[bot]
17f7b46d14 Remove primary server optimization, use unified rotation logic for all requests
Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
2026-01-19 13:25:37 +00:00
copilot-swe-agent[bot]
f56c9b558e Simplify server rotation to retry on any error, not just network errors
Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
2026-01-19 13:07:22 +00:00
copilot-swe-agent[bot]
45c48cdf82 Update api.js to use tryWithPrimaryServer and clean up unused imports
Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
2026-01-19 12:52:55 +00:00
copilot-swe-agent[bot]
b3969d1fd7 Optimize server rotation to use primary server first, only rotate on network errors
Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
2026-01-19 12:51:06 +00:00
copilot-swe-agent[bot]
bd566cdfe5 Initial plan 2026-01-19 12:47:15 +00:00

View File

@ -4,7 +4,7 @@
import {io} from 'socket.io-client';
import {getSetting} from '@/utils/settings';
import {getEffectiveServerUrl, isRotationEnabled, tryWithRotation} from '@/utils/serverRotation';
import {getEffectiveServerUrl, isRotationEnabled} from '@/utils/serverRotation';
let socket = null;
let connectedDomain = null;