fix(backend-integrations): no exit on request error
This commit is contained in:
parent
4c8ab3d381
commit
6642784f58
1 changed files with 1 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue