fix: cluster worker config issues

This commit is contained in:
jialin
2025-12-18 17:29:07 +08:00
parent e83bff6923
commit 78368e9979
21 changed files with 112 additions and 43 deletions
+2 -2
View File
@@ -166,11 +166,11 @@ const useSetChunkRequest = () => {
return axiosToken.current;
};
const setChunkRequest = async (config: RequestConfig) => {
const setChunkRequest = (config: RequestConfig) => {
requestConfig.current = { ...particalConfig, ...config };
retryCount.current = totalCount;
clearTimeout(timer.current);
await axiosChunkRequest(requestConfig.current);
axiosChunkRequest(requestConfig.current);
return axiosToken;
};
+1 -1
View File
@@ -117,7 +117,7 @@ export default function useTableFetch<T>(
try {
const query = _.omit(params || queryParams, ['page', 'perPage']);
chunkRequedtRef.current = await setChunkRequest({
chunkRequedtRef.current = setChunkRequest({
url: `${API}?${qs.stringify(_.pickBy(query, (val: any) => !!val))}`,
handler: updateHandler
});
+1 -1
View File
@@ -30,7 +30,7 @@ export default function useWatchList<T = Record<string, any>>(API: string) {
const createWatchChunkRequest = useMemoizedFn(async () => {
chunkRequestRef.current?.current?.cancel?.();
try {
chunkRequestRef.current = await setChunkRequest({
chunkRequestRef.current = setChunkRequest({
url: `${watchAPI}`,
params: {},
handler: updateWatchDataListHandler