PacktPublishing / Hands-On-Software-Engineering-with-Golang

Hands-On Software Engineering with Golang, published by Packt
MIT License
426 stars 127 forks source link

Ensure that locks used by the in-memory indexer store are always unlocked #18

Closed achilleasa closed 1 year ago

achilleasa commented 1 year ago

This commit fixes a bug in the Index() method implementation of the in-memory indexer store where an error would cause the method to return while still holding a lock.

Fixes #16