Skip to content

Commit

Permalink
Tesla Command: fix deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Feb 4, 2024
1 parent ed6bd89 commit a440cda
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions vehicle/tesla-vehicle-command/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@ var (
)

func getInstance(subject string) *Identity {
mu.Lock()
defer mu.Unlock()
v, _ := identities[subject]
return v
}

func addInstance(subject string, identity *Identity) {
mu.Lock()
defer mu.Unlock()
identities[subject] = identity
}

Expand Down

0 comments on commit a440cda

Please sign in to comment.