Refactor buildTrigger event handling to handle end-of-stream event properly
This commit refactors buildTrigger event handling to ensure that end-of-stream events are handled by closing the connection without logging them.
This commit is contained in:
parent
7a46794f1d
commit
0caab2e9ea
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ export default function BuildTrigger({
|
|||
// if the event is the end of the stream, close the connection
|
||||
if (parsedData.end_of_stream) {
|
||||
eventSource.close();
|
||||
|
||||
|
||||
return;
|
||||
} else if (parsedData.log) {
|
||||
// If the event is a log, log it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue