Skip to content

Commit

Permalink
fix: fix panic due to calling the wrong unlock method
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenschneider committed Dec 5, 2023
1 parent f130c9f commit f537adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func NewServer(config conf.ServerConf, propagator dns.Propagator, requests chan

func (server *Server) isCached(env common.UpdateRecordRequest) bool {
server.lock.RLock()
defer server.lock.Unlock()
defer server.lock.RUnlock()
entry, ok := server.cache[env.PublicIp.Host]
if !ok {
return false
Expand Down

0 comments on commit f537adc

Please sign in to comment.