Skip to content

Commit

Permalink
Merge branch 'feat/add-selfstate-monitor' into feat/add-selfstate-con…
Browse files Browse the repository at this point in the history
…troller
  • Loading branch information
almostinf committed Nov 6, 2024
2 parents 739bbee + 27c5959 commit b53b2eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion notifier/selfstate/heartbeat/heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ type Heartbeater interface {
type HeartbeaterBaseConfig struct {
Enabled bool
NeedTurnOffNotifier bool
NeedToCheckOthers bool

AlertCfg AlertConfig
}
Expand Down
7 changes: 5 additions & 2 deletions notifier/selfstate/heartbeat/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ type notifierHeartbeater struct {
}

// NewNotifierHeartbeater is a function that creates a new notifierHeartbeater.
func NewNotifierHeartbeater(cfg NotifierHeartbeaterConfig, base *heartbeaterBase) (*notifierHeartbeater, error) {
func NewNotifierHeartbeater(
cfg NotifierHeartbeaterConfig,
base *heartbeaterBase,
) (*notifierHeartbeater, error) {
return &notifierHeartbeater{
heartbeaterBase: base,
cfg: cfg,
heartbeaterBase: base,
}, nil
}

Expand Down

0 comments on commit b53b2eb

Please sign in to comment.