Skip to content

Commit

Permalink
add non-windows stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
zackattack01 committed Jun 27, 2024
1 parent 507a30f commit a3d0bef
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ee/powereventwatcher/power_event_watcher_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ type noOpPowerEventWatcher struct {
interrupted bool
}

type knapsackSubscriber struct{}

func NewKnapsackSubscriber(_ *slog.Logger, _ types.Knapsack) *knapsackSubscriber {
return &knapsackSubscriber{}
}

func (ks *knapsackSubscriber) OnPowerEvent(_ int) error {
return nil
}

func (ks *knapsackSubscriber) OnStartup() error {
return nil
}

func New(ctx context.Context, _ types.Knapsack, _ *slog.Logger) (*noOpPowerEventWatcher, error) {
_, span := traces.StartSpan(ctx)
defer span.End()
Expand Down

0 comments on commit a3d0bef

Please sign in to comment.