Skip to content

Commit

Permalink
fix: log service doesnt start up (#4814)
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv authored Dec 20, 2023
1 parent d1d05cc commit 47d07df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/logs/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ func (ls *LogsService) Shutdown(ctx context.Context) (err error) {
return err
}

ls.grpcServer.GracefulStop()
if ls.grpcServer != nil {
ls.grpcServer.GracefulStop()
}

// TODO decide how to handle graceful shutdown of consumers

Expand All @@ -136,7 +138,7 @@ func (ls *LogsService) WithHttpAddress(address string) *LogsService {
}

func (ls *LogsService) WithGrpcAddress(address string) *LogsService {
ls.httpAddress = address
ls.grpcAddress = address
return ls
}

Expand Down

0 comments on commit 47d07df

Please sign in to comment.