Skip to content

Commit

Permalink
[skip ci] fix cal init error
Browse files Browse the repository at this point in the history
  • Loading branch information
CMGS committed Jul 6, 2022
1 parent e343332 commit bc68b11
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cluster/calcium/calcium.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,14 @@ func New(config types.Config, t *testing.T) (*Calcium, error) {
cal := &Calcium{store: store, config: config, source: scm, watcher: watcher, resource: resource}

cal.wal, err = newWAL(config, cal)
cal.identifier = config.Identifier()
if err != nil {
return nil, logger.ErrWithTracing(nil, errors.WithStack(err)) //nolint
}

cal.identifier, err = config.Identifier()
if err != nil {
return nil, logger.ErrWithTracing(nil, errors.WithStack(err)) //nolint
}

go cal.InitMetrics()

Expand Down

0 comments on commit bc68b11

Please sign in to comment.