Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anpep committed Apr 24, 2023
1 parent 5d17737 commit 0816ea4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internal/overlord/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ func (osb *overlordStateBackend) EnsureBefore(d time.Duration) {
osb.ensureBefore(d)
}

type nilStateBackend struct {
type noopStateBackend struct {
ensureBefore func(d time.Duration)
}

func (nsb *nilStateBackend) Checkpoint(_ []byte) error {
func (nsb *noopStateBackend) Checkpoint(_ []byte) error {
return nil
}

func (nsb *nilStateBackend) EnsureBefore(d time.Duration) {
func (nsb *noopStateBackend) EnsureBefore(d time.Duration) {
nsb.ensureBefore(d)
}
2 changes: 1 addition & 1 deletion internal/overlord/overlord.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func New(pebbleDir string, restartHandler restart.Handler, serviceOutput io.Writ

var backend state.Backend
if dry {
backend = &nilStateBackend{
backend = &noopStateBackend{
ensureBefore: o.ensureBefore,
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion internal/overlord/stateengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
// the system and manipulating it to reflect the desired state.
type StateManager interface {
// DryStart prepares the manager to run its activities without
// inccurring in side effects that might affect the system
// incurring in side effects that might affect the system
// state.
DryStart() error

Expand Down

0 comments on commit 0816ea4

Please sign in to comment.