Skip to content

Commit

Permalink
Revert "rwmutex for configuration lock"
Browse files Browse the repository at this point in the history
This reverts commit 54f403b.
  • Loading branch information
cbodonnell committed Jan 10, 2024
1 parent 54f403b commit ce1d529
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

var isConfigured bool
var isConfiguredMu sync.RWMutex
var isConfiguredMu sync.Mutex

type ConfigureCredentials struct {
ClientID string `json:"client_id"`
Expand All @@ -20,8 +20,6 @@ type ConfigureCredentials struct {
}

func IsConfigured() bool {
isConfiguredMu.RLock()
defer isConfiguredMu.RUnlock()
return isConfigured
}

Expand Down

0 comments on commit ce1d529

Please sign in to comment.