Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Fix typo: Websocked -> Websocket #241

Merged
merged 2 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/agent/actions/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func handleVaultStatus(request messages.IPCMessage, cfg *config.Config, vault *v
vaultStatus.NumberOfLogins = len(vault.GetLogins())
vaultStatus.NumberOfNotes = len(vault.GetNotes())
vaultStatus.LastSynced = vault.GetLastSynced()
vaultStatus.WebsockedConnected = vault.IsWebsocketConnected()
vaultStatus.WebsocketConnected = vault.IsWebsocketConnected()
vaultStatus.PinSet = cfg.HasPin()
vaultStatus.LoggedIn = cfg.IsLoggedIn()
response, err = messages.IPCMessageFromPayload(vaultStatus)
Expand Down
8 changes: 4 additions & 4 deletions cli/agent/vault/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Vault struct {
sshKeyNoteIDs []string
envCredentials map[string]string
lastSynced int64
websockedConnected bool
websocketConnected bool
mu sync.Mutex
}

Expand All @@ -32,7 +32,7 @@ func NewVault(keyring *crypto.Keyring) *Vault {
sshKeyNoteIDs: make([]string, 0),
envCredentials: make(map[string]string),
lastSynced: 0,
websockedConnected: false,
websocketConnected: false,
}
}

Expand Down Expand Up @@ -424,13 +424,13 @@ func (vault *Vault) GetLastSynced() int64 {

func (vault *Vault) SetWebsocketConnected(connected bool) {
vault.lockMutex()
vault.websockedConnected = connected
vault.websocketConnected = connected
vault.unlockMutex()
}

func (vault *Vault) IsWebsocketConnected() bool {
vault.lockMutex()
defer vault.unlockMutex()

return vault.websockedConnected
return vault.websocketConnected
}
2 changes: 1 addition & 1 deletion cli/cmd/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ var statusCmd = &cobra.Command{
response["loginEntries"] = status.NumberOfLogins
response["noteEntries"] = status.NumberOfNotes
response["lastSynced"] = time.Unix(status.LastSynced, 0).String()
response["websocketConnected"] = status.WebsockedConnected
response["websocketConnected"] = status.WebsocketConnected
response["pinSet"] = status.PinSet
response["loggedIn"] = status.LoggedIn
responseJSON, _ := json.Marshal(response)
Expand Down
2 changes: 1 addition & 1 deletion cli/ipc/messages/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type VaultStatusResponse struct {
NumberOfLogins int
NumberOfNotes int
LastSynced int64
WebsockedConnected bool
WebsocketConnected bool
}

func init() {
Expand Down
2 changes: 1 addition & 1 deletion gui/src/gui/settings.blp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Adw.ApplicationWindow window {
icon-name: "emblem-synchronizing-symbolic";
}
Adw.ActionRow websocket_connected_row {
title: "Websocked Connected";
title: "Websocket Connected";
subtitle: "False";
}
Adw.ActionRow logins_row {
Expand Down
Loading