fixup! wip: refactor: API
This commit is contained in:
parent
977b6fe7d7
commit
d0d96dd1d9
@ -64,14 +64,15 @@ func (a *App) Run(ctx context.Context) error {
|
|||||||
return fmt.Errorf("receive envelope: %w", recErr)
|
return fmt.Errorf("receive envelope: %w", recErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
evt := envelope.GetEvent()
|
pbEvt := envelope.GetEvent()
|
||||||
if evt == nil {
|
if pbEvt == nil {
|
||||||
a.logger.Error("Received envelope without event")
|
a.logger.Error("Received envelope without event")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
a.logger.Debug("Received event")
|
evt := protocol.EventFromProto(pbEvt)
|
||||||
a.bus.Send(protocol.EventFromProto(evt))
|
a.logger.Debug("Received event from gRPC stream", "event", evt)
|
||||||
|
a.bus.Send(evt)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user