Revert "feat(ui): add warning socket event handling"

This reverts commit e7a61e631a42190e4b64e0d5e22771c669c5b30c.
This commit is contained in:
psychedelicious
2023-06-13 22:00:45 +10:00
parent b51e9a6bdb
commit e0c998d192
8 changed files with 0 additions and 80 deletions

View File

@ -73,7 +73,6 @@ import { addImageCategoriesChangedListener } from './listeners/imageCategoriesCh
import { addControlNetImageProcessedListener } from './listeners/controlNetImageProcessed';
import { addControlNetAutoProcessListener } from './listeners/controlNetAutoProcess';
import { addUpdateImageUrlsOnConnectListener } from './listeners/updateImageUrlsOnConnect';
import { addInvocationWarningEventListener } from './listeners/socketio/socketInvocationWarning';
export const listenerMiddleware = createListenerMiddleware();
@ -150,7 +149,6 @@ addGeneratorProgressListener();
addGraphExecutionStateCompleteListener();
addInvocationCompleteListener();
addInvocationErrorListener();
addInvocationWarningEventListener();
addInvocationStartedListener();
addSocketConnectedListener();
addSocketDisconnectedListener();

View File

@ -1,21 +0,0 @@
import { startAppListening } from '../..';
import { log } from 'app/logging/useLogger';
import {
appSocketInvocationWarning,
socketInvocationWarning,
} from 'services/events/actions';
const moduleLog = log.child({ namespace: 'socketio' });
export const addInvocationWarningEventListener = () => {
startAppListening({
actionCreator: socketInvocationWarning,
effect: (action, { dispatch, getState }) => {
moduleLog.warn(
action.payload,
`Invocation warning (${action.payload.data.node.type})`
);
dispatch(appSocketInvocationWarning(action.payload));
},
});
};