fix(backend-integrations): no exit on request error

This commit is contained in:
ShiKhu 2022-04-15 21:23:15 +02:00
parent 4c8ab3d381
commit 6642784f58

View file

@ -80,13 +80,10 @@ func main() {
}
sessionID = sessData.ID
}
// TODO: send to ready-events topic. Otherwise it have to go through the events worker.
// TODO: send to ready-events topic. Otherwise it have to go through the events worker.
producer.Produce(TOPIC_RAW_WEB, sessionID, messages.Encode(event.RawErrorEvent))
case err := <-manager.Errors:
log.Printf("Integration error: %v\n", err)
listener.Close()
pg.Close()
os.Exit(0)
case i := <-manager.RequestDataUpdates:
// log.Printf("Last request integration update: %v || %v\n", i, string(i.RequestData))
if err := pg.UpdateIntegrationRequestData(&i); err != nil {