summaryrefslogtreecommitdiff
path: root/internal/fsm
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-18 14:24:19 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-18 14:24:19 +0200
commitbda3d2784986e0a3fe2df78ec881332e81b54b3b (patch)
tree86b36f9bc948a38550696e050e2795faaad53cdb /internal/fsm
parentb2cd79227d299476b5d7e28cb53434b8e919e15f (diff)
All: Run Gofumpt formatter
Diffstat (limited to 'internal/fsm')
-rw-r--r--internal/fsm/fsm.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/fsm/fsm.go b/internal/fsm/fsm.go
index 162f3ad..47ac938 100644
--- a/internal/fsm/fsm.go
+++ b/internal/fsm/fsm.go
@@ -109,7 +109,7 @@ type FSMTransition struct {
}
type (
- FSMStates map[FSMStateID]FSMState
+ FSMStates map[FSMStateID]FSMState
)
type FSMState struct {
@@ -144,7 +144,7 @@ func (fsm *FSM) Init(name string, callback func(string, string, string), logger
REQUEST_CONFIG: FSMState{Transitions: []FSMTransition{{ASK_PROFILE, "Multiple profiles found and no profile chosen"}, {HAS_CONFIG, "Only one profile or profile already chosen"}, {NO_SERVER, "Cancel or Error"}, {OAUTH_STARTED, "Re-authorize"}}},
ASK_PROFILE: FSMState{Transitions: []FSMTransition{{HAS_CONFIG, "User chooses profile"}, {NO_SERVER, "Cancel or Error"}, {SEARCH_SERVER, "Cancel or Error"}}},
HAS_CONFIG: FSMState{Transitions: []FSMTransition{{CONNECTING, "OS reports it is trying to connect"}, {REQUEST_CONFIG, "User chooses a new profile"}, {NO_SERVER, "User wants to choose a new server"}}, BackState: NO_SERVER},
- CONNECTING: FSMState{Transitions: []FSMTransition{{HAS_CONFIG, "Cancel or Error"}, {CONNECTED, "Done connecting"}}},
+ CONNECTING: FSMState{Transitions: []FSMTransition{{HAS_CONFIG, "Cancel or Error"}, {CONNECTED, "Done connecting"}}},
CONNECTED: FSMState{Transitions: []FSMTransition{{HAS_CONFIG, "OS reports disconnected"}}},
}
fsm.Current = DEREGISTERED