Skip to content

Commit 34837fe

Browse files
committed
plugin: fix a double RLock bug
Signed-off-by: Ziheng Liu <[email protected]>
1 parent d706420 commit 34837fe

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

plugin/store.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,7 @@ func (ps *Store) GetAllByCap(capability string) ([]plugingetter.CompatPlugin, er
188188
* bypassing the daemon. For such tests, this check is necessary.
189189
*/
190190
if ps != nil {
191-
ps.RLock()
192191
result = ps.getAllByCap(capability)
193-
ps.RUnlock()
194192
}
195193

196194
// Lookup with legacy model

0 commit comments

Comments
 (0)