outbox for gateways

This commit is contained in:
Stephan D
2026-02-18 01:35:28 +01:00
parent 974caf286c
commit 69531cee73
221 changed files with 12172 additions and 782 deletions

View File

@@ -184,10 +184,10 @@ func (a *App[T]) Start() error {
a.cleanup(context.Background())
return err
}
a.logger.Debug("gRPC services registered")
a.logger.Debug("GRPC services registered")
a.runCtx, a.cancel = context.WithCancel(context.Background())
a.logger.Debug("gRPC server context initialised")
a.logger.Debug("GRPC server context initialised")
if err := a.grpc.Start(a.runCtx); err != nil {
a.logger.Error("Failed to start gRPC server", zap.Error(err))
@@ -210,9 +210,9 @@ func (a *App[T]) Start() error {
err = <-a.grpc.Done()
if err != nil && !errors.Is(err, context.Canceled) {
a.logger.Error("gRPC server stopped with error", zap.Error(err))
a.logger.Error("GRPC server stopped with error", zap.Error(err))
} else {
a.logger.Info("gRPC server finished")
a.logger.Info("GRPC server finished")
}
a.cleanup(context.Background())
@@ -230,7 +230,7 @@ func (a *App[T]) Shutdown(ctx context.Context) {
if err := a.grpc.Finish(ctx); err != nil && !errors.Is(err, context.Canceled) {
a.logger.Warn("Failed to stop gRPC server gracefully", zap.Error(err))
} else {
a.logger.Info("gRPC server stopped")
a.logger.Info("GRPC server stopped")
}
}
a.cleanup(ctx)