Skip to content

Commit

Permalink
feat: Add start method for each sink
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Jun 27, 2024
1 parent a833e32 commit 1b86183
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/server/service/event-ingester/ingester.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ func (e *Ingester) Start(ctx context.Context, grpcServer *grpc.Server) error {

xatu.RegisterEventIngesterServer(grpcServer, e)

for _, sink := range e.sinks {
if err := sink.Start(ctx); err != nil {
return err
}
}

return nil
}

Expand Down

0 comments on commit 1b86183

Please sign in to comment.