Skip to content

Commit

Permalink
fx: unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsaporiti committed Oct 2, 2024
1 parent 5344f71 commit 050a530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/loader/w3c_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func newLocalCache() *w3CDocumentLoaderLocalCache {

func (c *w3CDocumentLoaderLocalCache) Get(key string) (doc *ld.RemoteDocument, expireTime time.Time, err error) {
c.mutex.RLock()
defer c.mutex.Unlock()
defer c.mutex.RUnlock()
doc, ok := c.data[key]
if !ok {
return nil, time.Time{}, nil
Expand Down

0 comments on commit 050a530

Please sign in to comment.