Skip to content

Commit

Permalink
use rlock
Browse files Browse the repository at this point in the history
  • Loading branch information
korotkov-aerospike committed Dec 29, 2024
1 parent 14d871d commit 0521d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/handlers/config_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (s *Service) ReadPolicies(w http.ResponseWriter, _ *http.Request) {
// @Failure 500 {string} string "The specified policy could not be found"
func (s *Service) readPolicy(w http.ResponseWriter, r *http.Request) {
s.RLock()
defer s.Unlock()
defer s.RUnlock()

hLogger := s.logger.With(slog.String("handler", "readPolicy"))

Expand Down

0 comments on commit 0521d92

Please sign in to comment.