Skip to content

Commit

Permalink
introspection: remove disused argument
Browse files Browse the repository at this point in the history
This is replaced by the metrics-powered health check.

Signed-off-by: Hank Donnay <[email protected]>
  • Loading branch information
hdonnay committed Jul 23, 2024
1 parent a02ddea commit 61a1619
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/clair/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func serveAPI(ctx context.Context, cfg *config.Config) func() error {
func serveIntrospection(ctx context.Context, cfg *config.Config) func() error {
return func() error {
zlog.Info(ctx).Msg("launching introspection server")
srv, err := introspection.New(ctx, cfg, nil)
srv, err := introspection.New(ctx, cfg)
if err != nil {
zlog.Warn(ctx).
Err(err).
Expand Down
2 changes: 1 addition & 1 deletion introspection/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type Server struct {
}

// New constructs a [*Server], which has an embedded [*http.Server].
func New(ctx context.Context, conf *config.Config, _ func() bool) (*Server, error) {
func New(ctx context.Context, conf *config.Config) (*Server, error) {
var err error
ctx = zlog.ContextWithValues(ctx, "component", "introspection/New")

Expand Down

0 comments on commit 61a1619

Please sign in to comment.