chore: use gofumpt for code formatting
This commit is contained in:
@@ -16,7 +16,8 @@ var ErrInvalidStatus = errors.New("invalid status")
|
||||
// matches the requested one. It is thread safe and a synchronous call
|
||||
// since it waits to the loop to fully change its status.
|
||||
func (s *State) ApplyStatus(ctx context.Context, status models.LoopStatus) (
|
||||
outcome string, err error) {
|
||||
outcome string, err error,
|
||||
) {
|
||||
// prevent simultaneous loop changes by restricting
|
||||
// multiple ApplyStatus calls to run sequentially.
|
||||
s.loopMu.Lock()
|
||||
|
||||
@@ -8,7 +8,8 @@ import (
|
||||
|
||||
func New(status models.LoopStatus,
|
||||
start chan<- struct{}, running <-chan models.LoopStatus,
|
||||
stop chan<- struct{}, stopped <-chan struct{}) *State {
|
||||
stop chan<- struct{}, stopped <-chan struct{},
|
||||
) *State {
|
||||
return &State{
|
||||
status: status,
|
||||
start: start,
|
||||
|
||||
Reference in New Issue
Block a user