mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
fix: getting stream error for dependency server
This commit is contained in:
@@ -767,17 +767,6 @@ func (r *Runner) handleIPC() {
|
||||
}
|
||||
}
|
||||
|
||||
// SendToChild sends a message to the child process through the IPC channel
|
||||
// msgType: type of message being sent
|
||||
// payload: data to be sent to the child process
|
||||
func (r *Runner) SendToChild(msgType string, payload interface{}) {
|
||||
r.ipcChan <- entity.IPCMessage{
|
||||
Type: msgType,
|
||||
Payload: payload,
|
||||
IPC: true, // Explicitly mark as IPC message
|
||||
}
|
||||
}
|
||||
|
||||
// SetIPCHandler sets the handler for incoming IPC messages
|
||||
func (r *Runner) SetIPCHandler(handler func(entity.IPCMessage)) {
|
||||
r.ipcHandler = handler
|
||||
|
||||
Reference in New Issue
Block a user