Skip to content

Commit

Permalink
fix(warehouse): read unlock in historic identities (#2592)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayachand committed Oct 19, 2022
1 parent a194b0c commit 09dba21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion warehouse/identities.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (wh *HandleT) getPendingPopulateIdentitiesLoad(warehouse warehouseutils.War
var ok bool
wh.workspaceBySourceIDsLock.RLock()
upload.WorkspaceID, ok = wh.workspaceBySourceIDs[upload.SourceID]
wh.workspaceBySourceIDsLock.Unlock()
wh.workspaceBySourceIDsLock.RUnlock()

if !ok {
pkgLogger.Warnf("Workspace not found for source id: %q", upload.SourceID)
Expand Down

0 comments on commit 09dba21

Please sign in to comment.